Skip to content

fix(kimi-web): keep composer toolbar usable on narrow windows - #1436

Merged
wbxl2000 merged 1 commit into
mainfrom
fix/web-composer-toolbar-responsive
Jul 6, 2026
Merged

fix(kimi-web): keep composer toolbar usable on narrow windows#1436
wbxl2000 merged 1 commit into
mainfrom
fix/web-composer-toolbar-responsive

Conversation

@wbxl2000

@wbxl2000 wbxl2000 commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator

Related Issue

No linked issue — this is a small responsive-layout fix for the web composer found while tightening the toolbar at small widths.

Problem

The composer bottom toolbar lays every control on a single flex row, and its left / right halves use overflow: hidden to make them fit. Between the mobile breakpoint (640px) and a wide desktop — especially with the sidebar open, or on a phone — the row clipped its own content: the context readout, the model name, and the permission pill were cut off, and the context ring was hidden entirely on phones even though it is the live context-pressure signal.

What changed

  • Below 980px: hide the 12k/256k context readout (still available in the ring tooltip), cap the model name at 130px, and cap the permission pill at 104px with ellipsis, so the context ring and send button are no longer squeezed out on a narrow column.
  • On phones (≤640px): keep the context ring visible instead of hiding it with permission / mode — those still move into the mobile settings sheet — so context pressure stays glanceable at every width.

Checklist

  • I have read the CONTRIBUTING document.
  • I have linked a related issue, or explained the problem above.
  • I have added tests that prove my feature works.
  • Ran gen-changesets skill, or this PR needs no changeset.
  • Ran gen-docs skill, or this PR needs no doc update.

@changeset-bot

changeset-bot Bot commented Jul 6, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: b126623

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@moonshot-ai/kimi-code Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@pkg-pr-new

pkg-pr-new Bot commented Jul 6, 2026

Copy link
Copy Markdown
pnpm dlx https://pkg.pr.new/@moonshot-ai/kimi-code@b126623
npx https://pkg.pr.new/@moonshot-ai/kimi-code@b126623

commit: b126623

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 80c05aeec7

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +1902 to +1904
.ctx-num {
display: none;
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve accessible context usage text

When the viewport is ≤980px, display: none removes the only textual representation of context usage. The remaining ContextRing SVG is aria-hidden, and the tooltip is only shown from hover/focus listeners on a non-focusable span, so keyboard and screen-reader users on narrow desktop/mobile layouts can no longer get the used/max/pct value. Keep this text visually hidden instead, or add an accessible label to the ring/trigger when the visible count is suppressed.

Useful? React with 👍 / 👎.

The desktop composer toolbar renders every control on one row and relies on
overflow:hidden to fit, so between the mobile breakpoint and a wide window it
clipped its own content. Shed secondary ink below 980px (the context readout
moves into the ring tooltip, the model name truncates earlier, permission is
capped) and keep the context ring visible on phones too, instead of sending it
to the settings sheet.
@wbxl2000
wbxl2000 force-pushed the fix/web-composer-toolbar-responsive branch from 80c05ae to b126623 Compare July 6, 2026 13:47
@wbxl2000

wbxl2000 commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator Author

@codex

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Chef's kiss.

Reviewed commit: b126623aea

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@wbxl2000
wbxl2000 merged commit a5fbcb7 into main Jul 6, 2026
10 checks passed
@wbxl2000
wbxl2000 deleted the fix/web-composer-toolbar-responsive branch July 6, 2026 13:54
This was referenced Jul 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant