-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix: tags input not taking advantage of available width #1055
Conversation
✅ Deploy Preview for prefect-design ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
|
||
const containerBoundingBox = container.value!.getBoundingClientRect() | ||
const calculateOverflow = (): void => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did a little cleanup in this function but not a full refactor.
@brandonreid this seems to be working much better. One thing I found while testing in the demo though is if you shrink the inline one down and then expand it it won't always expand to show all the tags. Most reproducible when expanding more slowely. ![]() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Working good for me!
The tags input required a fixed width to really take advantage of the
+n
overflow display. This made it so the input was unusually long on the dashboard or never read out the selected tags:This PR makes it so that the tags list has an inline option and will allow the input to scale with the content.
Screen.Recording.2023-12-14.at.3.24.42.PM.mov
Screen.Recording.2023-12-14.at.3.27.11.PM.mov