Repository navigation
feat(grab): tray note grows with its text, tray is narrower - #114
Merged
Merged
Conversation
The note starts at one line, grows to 8 lines then scrolls, and drags taller. field-sizing: content, with an input-height fallback where it is missing. The hint wraps instead of being cut.
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.
Round 3 of grab multi select, from Mert's review: the note should be a textarea that can expand, and the tray should be narrower.
What changed
field-sizing: content; other browsers get a small input listener that sets the height.calc(100vw - 32px)on small screens).Proof
Real browser on https://knobs.localhost/#try, dark color scheme, two picks, six lines typed in the note:
All six lines show with no scrollbar, the page did not scroll, and the footer hint plus Copy 2 fit on one line at 320px. At a 390px viewport the tray is 320px wide.
bun testin packages/devknobs: 4697 pass, 0 fail. Typecheck, lint and format check are clean. Screenshots are on Mert's review card.Not checked in a browser: the fallback listener (Chromium supports
field-sizing).Weakened checks
None. The width test now expects 320px, and one test was added for the note growth, cap and resize.
Risk
Low. Tray CSS only, not released yet.
How to revert
Revert this PR's squash commit on main.