fix(web): responsive chat header selects on mobile #98
No reviewers
Labels
No labels
bug
commercial
documentation
duplicate
enhancement
feature
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
jasoncouture/llama-shears!98
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/chat-header-mobile-responsive"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
.chat-headerto wrap, let selects shrink (flex: 1 1 8rem,min-width: 0,max-width: 16remcap on desktop).Test plan
/chatat desktop width — agent + session selects sit side-by-side with action buttons on the right.Pull request overview
Improves the
/chatheader layout responsiveness by allowing header contents (agent/session selects and action buttons) to wrap on narrow viewports, preventing horizontal overflow after adding the session selector.Changes:
.chat-headerto wrap (flex-wrap: wrap) to avoid overflow on narrow widths.<select>elements flex/shrinkable with a desktop max-width cap.@media (max-width: 480px)rule to stack selects and adjust the action button group layout.Comments suppressed due to low confidence (1)
src/LlamaShears.Api.Web/Components/Chat/ChatHeader.razor.css:32
.chat-header-actionsmay still end up on the same row as a select if the selects are allowed to shrink. If the desired behavior is “actions group flows onto its own line” under 480px, consider also forcing the actions container to take the full row (e.g.,flex-basis: 100%/width: 100%) and then align its internal buttons as desired.💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
@ -17,0 +29,4 @@.chat-header-actions {margin-left: 0;flex-wrap: wrap;}In the <=480px media query,
flex-basis: 100%alone doesn’t guarantee the selects will actually render full-width because they still haveflex-shrink: 1fromflex: 1 1 8remand can shrink to share a line with later flex items. If the intent is to force stacking/full-width, setflex-shrink: 0(or override toflex: 0 0 100%/width: 100%) for the selects at this breakpoint.This issue also appears on line 29 of the same file.