fix(web): contain overflowing modal inputs in Add Repository dialog (#843)#844
Merged
RaghavChamadiya merged 4 commits intoJul 15, 2026
Merged
Conversation
|
✅ Health: 7.6 (unchanged) 📋 At a glance 🔎 More signals (1)🔥 Hotspot touched (1)
📊 Full report · ⭐ Star Repowise · 📥 Install bot · Last updated 2026-07-15 07:15 UTC |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes the layout overflow reported in #843, where input fields inside the "Add Repository" modal extended past the modal's container bounds.
Root Cause
The modal's inputs were missing two properties needed for correct sizing inside a flex/grid layout:
box-sizing: border-boxequivalent, so horizontal padding was added on top of the declared 100% width instead of being included in it.min-width: 0, so inputs couldn't shrink below their browser-default intrinsic width once the flex/grid container ran out of space.Changes
box-bordertoInputandSelectTrigger— ensures padding is included in the 100% width calculation instead of expanding past it.min-w-0to the inputs — allows them to shrink correctly inside flex/grid layouts instead of overflowing at their intrinsic minimum width.overflow-hiddento the modal container as a failsafe — the two fixes above resolve the root cause, but this guards against similar overflow if new fields are added to the modal in the future without the same width handling.Screenshots
Before:

After:

Fixes #843