feat: font dropdown keeps a minimum width - #771
Merged
surajshetty3416 merged 1 commit intoAug 19, 2026
Conversation
A narrow Family input forced its own width on the options list, so family names rendered in their own typeface got truncated. Autocomplete takes an optionsMinWidth floor: the absolute path anchors right so the extra width grows away from the panel edge, the fixed path widens its explicit width and clamps left to stay in the viewport. FontInput asks for 240px. Co-Authored-By: Claude <noreply@anthropic.com>
Contributor
Confidence Score: 5/5The PR appears safe to merge. The new width floor preserves existing autocomplete behavior while keeping widened font menus aligned and viewport-clamped. Reviews (1): Last reviewed commit: "feat: font dropdown keeps a minimum widt..." | Re-trigger Greptile |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #771 +/- ##
========================================
Coverage 66.90% 66.90%
========================================
Files 92 92
Lines 9937 9937
========================================
Hits 6648 6648
Misses 3289 3289 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
🎉 This PR is included in version 1.33.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
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.
Overview
A narrow Family input forces its own width on the font options list, so family names rendered in their own typeface get truncated (
Do... Space Mono,Wi...Unbounded). The options list now has a width floor.Screenshot
Details
Autocompletetakes anoptionsMinWidthprop. The in-place (absolute) path applies it asmin-widthand anchors the list to the input's right edge, so the extra width grows toward the canvas instead of past the panel edge. The teleported (fixed) path bakes the floor into its explicit width and clampsleftso the list stays in the viewport.FontInputasks for a 240px floor; other autocompletes are unchanged.