fix: improve agent detail modal layout and fallback chain display#701
Open
Fail-Safe wants to merge 1 commit intoRightNow-AI:mainfrom
Open
fix: improve agent detail modal layout and fallback chain display#701Fail-Safe wants to merge 1 commit intoRightNow-AI:mainfrom
Fail-Safe wants to merge 1 commit intoRightNow-AI:mainfrom
Conversation
- Widen agent detail modal from 600px to 700px to better accommodate longer model names and the fallback chain editor - Restructure the Fallbacks section in the Info tab: content div is now a column flex container (gap:6px) with margin-left:16px to create a clear visual column between the label and its content - Prevent long provider/model badge strings from overflowing the right edge of the modal (word-break:break-all; white-space:normal on badge) - Add flex-shrink:0 to the × delete button so it never gets squashed when a badge is long - Wrap the "+ Add" button in a div so it stays left-aligned (column flex would otherwise stretch a bare button to full width) - Replace margin-top with gap-based spacing on the fallback edit form Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.
Problem
The agent detail modal had two visual issues in the Info tab's Fallbacks section:
provider/modelstrings in fallback badges overflowed the right edge of the modal — the badge would extend beyond the modal boundary rather than wrapping..detail-rowusingjustify-content: space-between, which only creates spacing between items when they don't haveflex-grow. The content div hadflex:1, which caused it to start flush against the label's right edge rather than being pushed to the opposite side.Changes
index_body.html(Info tab, Fallbacks section only):max-width:600pxtomax-width:700pxto better accommodate longer model names and the fallback editordisplay:flex; flex-direction:column; gap:6px; margin-left:16pxto the Fallbacks content div — creates a clear column between label and content, and stacks the fallback list / "None" text / "+ Add" button vertically with consistent spacingword-break:break-all; white-space:normalto fallback badge spans so longprovider/modelstrings wrap instead of overflowingflex-shrink:0to the × delete button so it is never squashed by a long badge<div>to prevent column-flex from stretching it to full widthmargin-topandmt-1with gap-based spacing (the parent gap handles vertical rhythm)Before / After
Before:
FALLBACKSNone — add a fallback chain— label and value on the same visual line; long model names clip the modal edge.After: Label sits in its own column; content stacks below with consistent spacing; long names wrap within the badge.