Skip to content

fix(web): align composer toolbar corners with card border-radius#1201

Draft
itzrnvr wants to merge 1 commit into
MoonshotAI:mainfrom
itzrnvr:fix/composer-toolbar-corners
Draft

fix(web): align composer toolbar corners with card border-radius#1201
itzrnvr wants to merge 1 commit into
MoonshotAI:mainfrom
itzrnvr:fix/composer-toolbar-corners

Conversation

@itzrnvr

@itzrnvr itzrnvr commented Jun 29, 2026

Copy link
Copy Markdown

Problem

The composer toolbar's bottom corners (where the file picker, mode selector, and model dropdown live) don't match the composer card's border-radius, causing a visible mismatch where the toolbar corners look cut off or overlapping inside the card's rounded shape.

Area Card radius Toolbar radius (before) Mismatch
Terminal theme 16px 12px (var(--r-md)) 4px
Modern/Kimi theme var(--r-md) (12px) var(--r-md) (12px) 1px (no border compensation)

Fix

Set the toolbar's bottom corners to match the card's inner curve (card radius minus the 1px border):

  • Terminal: toolbar changed from var(--r-md) to 15px (card's 16px1px border)
  • Modern/Kimi: added border-radius: 0 0 calc(var(--r-md) - 1px) calc(var(--r-md) - 1px) override in style.css

Screenshots

Before — toolbar corners don't follow the card's curve:

The bottom corners of the toolbar section (file picker + model area) appear squared off or cut short relative to the card's rounded corners.

After — toolbar corners align cleanly with the card:

The toolbar's bottom corners now follow the same curve as the composer card, creating a seamless rounded shape.

Testing

  • Type-check passes (vue-tsc --noEmit)
  • Build passes (vite build)
  • Visual verification across terminal, modern, and kimi themes

Changes

  • apps/kimi-web/src/components/chat/Composer.vue — toolbar border-radius var(--r-md)15px
  • apps/kimi-web/src/style.css — modern/kimi toolbar override adds matching calc(var(--r-md) - 1px) radius

@changeset-bot

changeset-bot Bot commented Jun 29, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: f860839

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@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: 9e4b713cda

ℹ️ 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".

:is(html[data-theme="modern"], html[data-theme="kimi"]) .toolbar {
background: color-mix(in srgb, var(--panel), black 1.5%);
/* Match .composer-card's var(--r-md) minus 1px border. */
border-radius: 0 0 calc(var(--r-md) - 1px) calc(var(--r-md) - 1px);

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 Keep Kimi toolbar radius in sync with its 20px card

This shared Modern/Kimi override leaves the Kimi composer mismatched: the Kimi-specific rule later in this file sets .composer-card to 20px (line 880), but this selector still applies to html[data-theme="kimi"] and computes the toolbar corners from --r-md (root 12px), so Kimi renders an 11px toolbar inside a 20px card instead of the intended 19px inner curve. In the Kimi theme, the bottom toolbar corners will still visibly cut inside the card despite this fix.

Useful? React with 👍 / 👎.

@itzrnvr itzrnvr marked this pull request as draft June 29, 2026 10:25
The composer toolbar's bottom corners used var(--r-md) (12px) while the
composer card uses 16px (terminal) or var(--r-md) (modern/kimi). This
mismatch caused the toolbar corners to look cut off or overlapping inside
the card's rounded shape.

Fix: set the toolbar border-radius to match the card's inner curve
(card radius minus 1px border) across all themes.

- Terminal: toolbar 15px to match card's 16px - 1px border
- Modern/Kimi: toolbar calc(var(--r-md) - 1px) to match card's var(--r-md)
@itzrnvr itzrnvr force-pushed the fix/composer-toolbar-corners branch from 9e4b713 to f860839 Compare June 29, 2026 10:33
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