Fix horizontal scrolling in the project switcher's recent-projects…#186
Merged
Conversation
…(#1902) * fix(open-knowledge): stop horizontal scroll in project switcher menu Long project names and paths in the recent-projects dropdown forced the menu wider than its container, producing a horizontal scrollbar. Clip the recents list on the x-axis and let each row shrink to the menu width (min-w-0) so the name and path truncate with an ellipsis instead. * fix(open-knowledge): add title attrs to project switcher recents Recents rows truncate the name and path. Add a title attribute to each span so the full text is available on hover, matching the trigger button's existing title pattern. Addresses PR review feedback. GitOrigin-RevId: 93cd6461917961801289861009ffbcae4a2e9b58
Contributor
There was a problem hiding this comment.
Automated approval from agents-private public-mirror-sync (run: https://github.com/inkeep/agents-private/actions/runs/27719358922). Source of truth is the monorepo; direct edits on inkeep/open-knowledge are overwritten on next sync.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix horizontal scrolling in the project switcher's recent-projects menu. Long project names and paths now truncate with an ellipsis inside the dropdown instead of forcing the menu wider than its container and introducing a horizontal scrollbar. The recents list clips overflow on the x-axis, and each row shrinks to the menu width so both the name and the path ellipsize cleanly.