Repository navigation
fix(app): keep prompt submit visible on narrow displays - #43298
bmpenuelas wants to merge 4 commits into
Conversation
nit: packages/session-ui/src/v2/components/prompt-input/index.tsx:695 — — reviewer-h (automated AI reviewer) |
Keep tooltip-wrapped prompt controls from shrinking so the control strip scrolls instead of overlapping Submit. Correct the directional chevrons and centralize the complete model/variant sizing classes shared by app and session-ui.
|
Addressed the review feedback in fd4fcc7: added directional overflow affordances, removed the white-box overflow assertion, centralized prompt-control classes, removed the submit z-index workaround, and fixed tooltip wrapper shrinking plus chevron direction. |
|
Hi, I ran into the same overlap on Android and opened #47330 before I saw this one, sorry for the noise. It takes a different route (the labels ellipsize via |
…omalyco#43295) Mocks a model with a long display name and a variant, opens a session at 320 px and asserts that the controls row, the model button and the variant chip all end before the send button starts, and that the send button stays inside the viewport. Adds a data-slot="prompt-controls" anchor on the controls row. The idea of asserting the send button's box against the controls' box at 320 px comes from bmpenuelas' anomalyco#43298; this is a fresh spec written for the truncation approach.
|
Hi @Capicua25x! No worries, I also started a bit different and then added some changes based on the review comments. I favor the scroll because it allows users to see more of the model name without needing to tap it. But as long as they merge a fix, I'm happy with either solution. |
|
Small addition that helped in my testing: |
|
Greetings! Have you been following the recent developments around the
Global Currency Reset and the looming threat of bank closures?
…On Fri, Sep 4, 2026, 9:06 PM Capicua25x ***@***.***> wrote:
*Capicua25x* left a comment (anomalyco/opencode#43298)
<#43298 (comment)>
Small addition that helped in my testing: min-w-0 on the TooltipV2
trigger wrapper of the model control (in PromptInputV2ModelControl,
prompt-input-v2.tsx). Without it the model chip inside the track is cut
mid-word at the clip edge instead of ellipsizing.
—
Reply to this email directly, view it on GitHub
<#43298?email_source=notifications&email_token=CMSNYIYDEHBER5OXODU6NDL5NMOEVA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKNJUGU4DKNBQGIZ2M4TFMFZW63VKON2WE43DOJUWEZLEUVSXMZLOOSWGM33PORSXEX3DNRUWG2Y#issuecomment-5545854023>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/CMSNYI6LN7DN6U4LSUD3OMT5NMOEVAVCNFSNUABFKJSXA33TNF2G64TZHM4TONJXGM2DGMJZHNEXG43VMU5TKMJYGYZTGNRVGI32C5QC>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
|
Thanks a lot @Capicua25x for the testing and the support! |
|
Thanks for pushing this forward — a signal from downstream: I've been running a bespoke build off this branch ( Is there anything blocking a maintainer review here? Happy to test any further revisions. |
|
This branch has been upgraded to V2. We're no longer taking PRs for V1. If you think this is still relevant, please port it over and open it for V2. — from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊 |
Issue for this PR
Closes #43295
Type of change
What does this PR do?
On narrow viewports, prompt controls can overflow into the submit button and receive taps intended for send. This keeps the submit button in its own non-shrinking space, makes excess controls horizontally scrollable, and keeps individual selectors from shrinking into the submit area.
The regression test uses a 320 px viewport with a long model name and verifies that the controls overflow within their scroll container while the submit button remains outside it.
How did you verify your code works?
Added regression test.
Screenshots / recordings
BEFORE:

AFTER: (note that the selector also becomes scrollable so the user can slide back and forth to see more, or click/tap the chevrons to see more to the right or to the left)

Checklist