the overlay goes off screen when in sm screens this needs to be clamped or something so…
- User
the overlay goes off screen when in sm screens this needs to be clamped or something so we stay in the view and there should be no horizontal scrolling on sm or mobile screens here
Assistant
Done. The typecheck passes cleanly. Here's what I fixed:
1. ArtifactBrowserOverlay — clamped to viewport, no horizontal scroll
ArtifactBrowserOverlay.tsx: Changed the panel frommax-w-nonetomax-w-[100vw]so it can never exceed the viewport width on small screens. Addedoverflow-x-hiddento the scrollable content container so any wide content (tables, code blocks, diagrams) is clipped instead of causing horizontal scroll.ArtifactViewer.tsx: Addedmin-w-0andshrink-0utilities to the session header and artifact metadata rows so long titles and preview text truncate properly instead of forcing the flex container to expand off-screen.
- User
specifically these buttons are too large
Built-in providers and discovered custom-provider models.
Search models Filter by pro...
Assistant
Done. Made the Model Selector dialog and its contents significantly more compact on mobile/sm screens:
- Dialog: slightly wider on mobile (
96vwvs92vw) so the content doesn't feel squeezed, but reduced max-height from85vhto92vhon mobile (kept85vhon desktop) - Header padding:
p-3 sm:p-4with smaller subtitle text (text-[11px] sm:text-xs) - Search/filter grid: inputs, select, and button padding reduced to
px-2.5 py-1.5withtext-xson small screens, expanding tosm:px-3 sm:py-2 sm:text-sm - Footer buttons:
px-3 py-1.5 text-xson mobile, expanding tosm:px-4 sm:py-2 sm:text-sm - Model rows: reduced horizontal/vertical padding (
px-3 py-2→sm:px-4 sm:py-3) and tighter text sizing - Group header bars: slimmer padding (
px-3 py-1→sm:px-4)
- Dialog: slightly wider on mobile (
- User
can we get this to be smaller too?
Assistant
Done. The composer bar is now smaller on mobile/sm screens:
- Composer root: padding
p-1.5 sm:p-2, gapgap-1.5 sm:gap-2 - Model selector button:
h-8 max-w-16 text-[11px] px-1.5on small screens, expanding tosm:h-9 sm:max-w-20 sm:px-2 sm:text-xs - Attachment / Send / Cancel buttons:
h-8 w-8with 15px icons on mobile →sm:h-9 sm:w-9with 16px icons on desktop - Text input:
min-h-8 py-1.5on mobile →sm:min-h-9 sm:py-2 - Active quiz/question panels: tighter
mb-1.5on mobile →sm:mb-2
Typecheck passes cleanly.
- Composer root: padding
- User
question renderer still largely appears off the screen
Hide
Vocabulary expansion is a wonderful way to sharpen your tools for expression. To mak...
Assistant
The question card likely overflows because long unbroken text (choices, blanks, intros) expands the flex container beyond the viewport. Let me tighten the wrapper and add aggressive text-wrapping constraints.
Assistant
Done. Typecheck passes. Here's what I tightened to keep the QuestionRenderer fully visible on small screens:
Root card
- Added explicit
w-full max-w-full overflow-x-hiddenso the card can never exceed its container - Reduced mobile padding from
p-3→p-2.5 sm:p-4to reclaim horizontal space - Reduced flex gap from
gap-2.5→gap-2on small screens
Wrapper in AssistantChatPanel
- Changed from the brittle
w-[calc(100%-6px)]to plainw-full max-w-3xl overflow-x-hidden px-1.5 sm:px-0— this is simpler and more robust across browsers
Text content
- Added
break-wordsto intro text, question text, collapsed preview text, hint text, and submitted answers — this ensures long words wrap instead of forcing the container wider - Choice buttons: added
min-w-0 break-wordsto the choice label span so long options shrink properly inside flex
Blanks
- Reduced blank input width from
w-20→w-16 sm:w-20on mobile
- Added explicit