From b71525880513b91217dc1bc2adab07f808e3bd32 Mon Sep 17 00:00:00 2001 From: shivamg9 Date: Thu, 20 Jun 2024 17:56:15 +0530 Subject: [PATCH] G2P-2388: Made program details popup with fixed size and scroll --- messages/en.json | 2 +- messages/es.json | 2 +- messages/fr.json | 2 +- messages/tl.json | 2 +- src/app/[locale]/programs/page.tsx | 11 ++++++++--- 5 files changed, 12 insertions(+), 7 deletions(-) diff --git a/messages/en.json b/messages/en.json index cde2c57..0806fb0 100644 --- a/messages/en.json +++ b/messages/en.json @@ -119,7 +119,7 @@ "No applications yet please tap on the below link to view all programs": "No applications yet, please tap on the below link to view all programs", "No benefits yet please tap on the below link to view all programs": "No benefits yet, please tap on the below link to view all programs", "You havent enrolled into any programs yet please tap on the below link to view all programs": "You haven’t enrolled into any programs yet, please tap on the below link to view all programs", - "No Applications No Benefits": "You haven’t applied to any programs yet; please tap on the below link to view all programs.", + "No Applications No Benefits": "You haven’t applied to any programs yet, please tap on the below link to view all programs.", "Applications but No Benefits": "No approved entitlement to show, please visit my application page.", "View All Program": "View All Program", "View My Applications": "View Applications", diff --git a/messages/es.json b/messages/es.json index 004fb98..ebc4700 100644 --- a/messages/es.json +++ b/messages/es.json @@ -119,7 +119,7 @@ "No applications yet please tap on the below link to view all programs": "Todavía no hay solicitudes, por favor toque el enlace de abajo para ver todos los programas", "No benefits yet please tap on the below link to view all programs": "Todavía no hay beneficios, por favor toque el enlace de abajo para ver todos los programas", "You havent enrolled into any programs yet please tap on the below link to view all programs": "Todavía no se ha inscrito en ningún programa, por favor toque el enlace de abajo para ver todos los programas", - "No Applications No Benefits": "Aún no has aplicado a ningún programa; por favor, toca el enlace de abajo para ver todos los programas.", + "No Applications No Benefits": "Aún no has aplicado a ningún programa, por favor, toca el enlace de abajo para ver todos los programas.", "Applications but No Benefits": "No hay ningún derecho aprobado para mostrar, por favor visita mi página de aplicaciones.", "View All Program": "Ver Todos los Programas", "View My Applications": "Ver Aplicaciones", diff --git a/messages/fr.json b/messages/fr.json index 036c476..9a726f9 100644 --- a/messages/fr.json +++ b/messages/fr.json @@ -119,7 +119,7 @@ "No applications yet please tap on the below link to view all programs": "Aucune demande pour le moment, veuillez appuyer sur le lien ci-dessous pour voir tous les programmes", "No benefits yet please tap on the below link to view all programs": "Aucun avantage pour le moment, veuillez appuyer sur le lien ci-dessous pour voir tous les programmes", "You havent enrolled into any programs yet please tap on the below link to view all programs": "Vous n'êtes inscrit à aucun programme pour le moment, veuillez appuyer sur le lien ci-dessous pour voir tous les programmes", - "No Applications No Benefits": "Vous n'avez encore postulé à aucun programme ; veuillez cliquer sur le lien ci-dessous pour voir tous les programmes.", + "No Applications No Benefits": "Vous n'avez encore postulé à aucun programme, veuillez cliquer sur le lien ci-dessous pour voir tous les programmes.", "Applications but No Benefits": "Aucun droit approuvé à afficher, veuillez visiter ma page de candidature.", "View All Program": "Voir Tous les Programmes", "View My Applications": "Voir Candidatures", diff --git a/messages/tl.json b/messages/tl.json index 8e8ffd3..ef2625f 100644 --- a/messages/tl.json +++ b/messages/tl.json @@ -119,7 +119,7 @@ "No applications yet please tap on the below link to view all programs": "Wala pang mga aplikasyon, mangyaring pindutin ang link sa ibaba upang tingnan lahat ng mga programa", "No benefits yet please tap on the below link to view all programs": "Wala pang mga benepisyo, mangyaring pindutin ang link sa ibaba upang tingnan lahat ng mga programa", "You havent enrolled into any programs yet please tap on the below link to view all programs": "Hindi ka pa nakapag-enroll sa anumang programa, mangyaring pindutin ang link sa ibaba upang tingnan lahat ng mga programa", - "No Applications No Benefits": "Wala ka pang inaaplayan na mga programa; pakitap ang link sa ibaba upang makita ang lahat ng mga programa.", + "No Applications No Benefits": "Wala ka pang inaaplayan na mga programa, pakitap ang link sa ibaba upang makita ang lahat ng mga programa.", "Applications but No Benefits": "Walang naaprubahang benepisyo na ipapakita, pakibisita ang aking pahina ng aplikasyon.", "View All Program": "Tingnan Lahat ng Programa", "View My Applications": "Tingnan ang Aking Mga Aplikasyon", diff --git a/src/app/[locale]/programs/page.tsx b/src/app/[locale]/programs/page.tsx index 9a8b8a4..42e17ad 100644 --- a/src/app/[locale]/programs/page.tsx +++ b/src/app/[locale]/programs/page.tsx @@ -689,14 +689,19 @@ export default function ProgrmPage({ className="fixed top-0 left-0 w-full h-full flex items-center justify-center bg-black bg-opacity-50" onClick={closeProgramDetails} > -
e.stopPropagation()}> -

{selectedProgram.name}

+
e.stopPropagation()} + style={{overflowY: "auto"}} // Add vertical scroll if content overflows + > +

{selectedProgram.name}

+
{/* Horizontal line */}

{selectedProgram.description}