Skip to content

fix(web): prevent horizontal scrollbar in session search dialog - #1290

Merged
wbxl2000 merged 1 commit into
mainfrom
fix/web-search-sessions-horizontal-scroll
Jul 2, 2026
Merged

fix(web): prevent horizontal scrollbar in session search dialog#1290
wbxl2000 merged 1 commit into
mainfrom
fix/web-search-sessions-horizontal-scroll

Conversation

@wbxl2000

@wbxl2000 wbxl2000 commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator

Related Issue

No related issue.

Problem

The session search dialog showed a horizontal scrollbar whenever a session title or a matched snippet was long. Each result row is a column flex container, and its title and snippet used white-space: nowrap with text-overflow: ellipsis but no min-width: 0. Flex items default to min-width: auto, so under nowrap they refused to shrink below their full text width and overflowed the row, surfacing as a horizontal scrollbar on the dialog body instead of being truncated with an ellipsis.

The workspace-name line in the same dialog did not have this problem because it already set min-width: 0.

What changed

Added min-width: 0 to the title and snippet so the flex items can shrink to the row width and the existing ellipsis styling takes effect, matching the workspace-name line.

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.

The search sessions dialog used a column flex layout where the title and snippet had white-space: nowrap but no min-width: 0, so the flex items refused to shrink below their text width and overflowed, surfacing a horizontal scrollbar on the dialog body. Add min-width: 0 so they shrink and ellipsize instead.
@changeset-bot

changeset-bot Bot commented Jul 2, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 1abbaa1

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 2, 2026

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

commit: 1abbaa1

@wbxl2000
wbxl2000 merged commit 3ea84a5 into main Jul 2, 2026
10 checks passed
@wbxl2000
wbxl2000 deleted the fix/web-search-sessions-horizontal-scroll branch July 2, 2026 04:24
@github-actions github-actions Bot mentioned this pull request Jul 2, 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