feat: enhance dialog components with overflow handling and update placeholder text for consistency

This commit is contained in:
2026-01-26 14:47:04 -06:00
parent 1ae82fc4e4
commit 3c0b1396bc
12 changed files with 194 additions and 18 deletions

View File

@@ -387,7 +387,7 @@ const AcceptInvitation = () => {
value={formData.first_name}
onChange={(e) => handleChange('first_name', e.target.value)}
className="rounded-xl border-2 border-[var(--neutral-800)] focus:border-brand-purple "
placeholder="John"
placeholder="Jane"
/>
{formErrors.first_name && (
<p className="text-sm text-red-500">{formErrors.first_name}</p>

View File

@@ -330,7 +330,7 @@ const AdminBylaws = () => {
{/* Create/Edit Dialog */}
<Dialog open={dialogOpen} onOpenChange={setDialogOpen}>
<DialogContent>
<DialogContent className="overflow-y-auto max-h-[90vh]">
<DialogHeader>
<DialogTitle>
{selectedBylaws ? 'Edit Bylaws' : 'Add Bylaws Version'}

View File

@@ -287,7 +287,7 @@ const AdminNewsletters = () => {
{/* Create/Edit Dialog */}
<Dialog open={dialogOpen} onOpenChange={setDialogOpen}>
<DialogContent className="max-w-2xl">
<DialogContent className="max-w-2xl overflow-y-auto max-h-[90vh]">
<DialogHeader>
<DialogTitle>
{selectedNewsletter ? 'Edit Newsletter' : 'Add Newsletter'}

View File

@@ -848,7 +848,7 @@ Proceed with activation?`;
{/* Edit Subscription Dialog */}
<Dialog open={editDialogOpen} onOpenChange={setEditDialogOpen}>
<DialogContent className="sm:max-w-[500px] bg-background rounded-2xl">
<DialogContent className="sm:max-w-[500px] bg-background rounded-2xl overflow-y-auto max-h-[90vh]">
<DialogHeader>
<DialogTitle className="text-2xl font-semibold text-[var(--purple-ink)]" style={{ fontFamily: "'Inter', sans-serif" }}>
Edit Subscription

View File

@@ -285,7 +285,7 @@ const EventGallery = () => {
{/* Lightbox Modal */}
<Dialog open={selectedImageIndex !== null} onOpenChange={closeLightbox}>
<DialogContent className="max-w-7xl w-full h-[90vh] p-0 bg-black border-0">
<DialogContent className="max-w-7xl w-full h-[90vh] p-0 bg-black border-0 overflow-y-auto max-h-[90vh]">
{selectedImageIndex !== null && galleryImages[selectedImageIndex] && (
<div className="relative w-full h-full flex items-center justify-center">
{/* Close Button */}