Skip to content

fix(open-knowledge): truncate the Ask AI selection chip label#279

Merged
inkeep-oss-sync[bot] merged 1 commit into
mainfrom
copybara/sync
Jun 25, 2026
Merged

fix(open-knowledge): truncate the Ask AI selection chip label#279
inkeep-oss-sync[bot] merged 1 commit into
mainfrom
copybara/sync

Conversation

@inkeep-oss-sync

Copy link
Copy Markdown
Contributor

No description provided.

The selection pill's label is a shadcn Button whose base `shrink-0` +
`whitespace-nowrap` left the inline-flex button at its content width inside
the pill's max-w-[16rem] span — so a long file name overflowed the chip's
border (measured 275px content vs the 256px capped span). Add `shrink` to
let the button shrink and move `truncate` to an inner span so the label
ellipsizes within the cap, matching the file chip. Add `title={pinnedLabel}`
so the full label stays recoverable on hover / AT once truncated.

GitOrigin-RevId: 9084deb00ed3eef00e695fa0e72e1b2dc66cf306

@inkeep-internal-ci inkeep-internal-ci Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Automated approval from agents-private public-mirror-sync (run: https://github.com/inkeep/agents-private/actions/runs/28197759273). Source of truth is the monorepo; direct edits on inkeep/open-knowledge are overwritten on next sync.

@inkeep-oss-sync
inkeep-oss-sync Bot merged commit ae3db08 into main Jun 25, 2026
2 checks passed
@inkeep-oss-sync
inkeep-oss-sync Bot deleted the copybara/sync branch June 25, 2026 20:18
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