-
Notifications
You must be signed in to change notification settings - Fork 198
fix: prevent filters dropdown from being clipped by dialog overflow #2643
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: prevent filters dropdown from being clipped by dialog overflow #2643
Conversation
Console (appwrite/console)Project ID: Sites (1)
Tip Dynamic API keys are generated automatically for each function execution |
WalkthroughThis change modifies the modal component by adding an Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
Tip 📝 Customizable high-level summaries are now available in beta!You can now customize how CodeRabbit generates the high-level summary in your pull requests — including its content, structure, tone, and formatting.
Example instruction:
Note: This feature is currently in beta for Pro-tier users, and pricing will be announced later. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
🧹 Nitpick comments (1)
src/lib/components/modal.svelte (1)
57-61: Consider more targeted solutions and update the comment.The comment mentions only the width fix but not the overflow override. Additionally, applying
overflow: visibleglobally may not be the most maintainable approach.1. Update the comment to document both overrides:
- /* temporary fix to modal width */ + /* temporary fixes: prevent width overflow and allow dropdowns to extend beyond modal */ :global(dialog section) { max-width: 100% !important; overflow: visible !important; }2. Consider alternative approaches that don't affect all modals:
- Option A: Use a CSS portal/teleport pattern for dropdowns (render them outside the modal DOM hierarchy)
- Option B: Apply
overflow: visibleonly when needed via a prop:export let allowOverflow = false;- Option C: Use more specific selectors to target only the sections containing dropdowns:
:global(dialog section:has(.input-select))- Option D: Use
overflow-y: autowithoverflow-x: visibleto maintain vertical scrolling while allowing horizontal overflow for dropdownsThese approaches would prevent unintended side effects on modals that need scroll containment.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
src/lib/components/modal.svelte(1 hunks)
🧰 Additional context used
📓 Path-based instructions (4)
**/*.{ts,tsx,js,jsx,svelte}
📄 CodeRabbit inference engine (AGENTS.md)
**/*.{ts,tsx,js,jsx,svelte}: Import reusable modules from the src/lib directory using the $lib alias
Use minimal comments in code; reserve comments for TODOs or complex logic explanations
Use $lib, $routes, and $themes aliases instead of relative paths for module imports
Files:
src/lib/components/modal.svelte
src/lib/components/**/*.svelte
📄 CodeRabbit inference engine (AGENTS.md)
Use PascalCase for component file names and place them in src/lib/components/[feature]/ directory structure
Files:
src/lib/components/modal.svelte
**/*.{ts,tsx,js,jsx,svelte,json}
📄 CodeRabbit inference engine (AGENTS.md)
Use 4 spaces for indentation, single quotes, 100 character line width, and no trailing commas per Prettier configuration
Files:
src/lib/components/modal.svelte
**/*.svelte
📄 CodeRabbit inference engine (AGENTS.md)
Use Svelte 5 + SvelteKit 2 syntax with TypeScript for component development
Files:
src/lib/components/modal.svelte

What does this PR do?
Fixes dropdown overflow issue in modals where
InputSelectdropdowns were getting clipped by modal boundaries. This PR adds a CSS override to allow dropdowns to overflow the modal container, ensuring they remain fully visible when opened.Changes:
overflow: visible !important;todialog sectionelements insrc/lib/components/modal.svelteModalcomponentNote: This is a temporary workaround for a known issue that is being addressed internally. The override is placed alongside the existing
max-widthoverride in the base modal component.Test Plan
Filter Modal Test:
Other Modal Tests:
InputSelectin other modals:Visual Verification:
Related PRs and Issues
#2628
Have you read the Contributing Guidelines on issues?
Yes, I have read the contributing guidelines.
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.