-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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(horizontal filter bar filter labels): Increase max-width to 96px #25883
Conversation
fix(edit dataset modal): display full sql query in the sql field
Thanks @rtexelm for the PR. Isn't the readability a function of screen size and thus should the maximum width be a relative (as opposed to absolute) measure? |
/testenv up |
@eschutho Ephemeral environment spinning up at http://54.185.241.142:8080. Credentials are |
/testenv up FEATURE_HORIZONTAL_FILTER_BAR= True |
@john-bodley Yes I think it should be relative, however I determined that would be a more significant style change that might be better suited to a separate PR after consulting with the designers while this was in response to a particular request for it to be set to 96px |
@yousoph Ephemeral environment spinning up at http://35.87.101.189:8080. Credentials are |
@kasiazjc, in light of @john-bodley's comment what do you think about us just removing the max-width on this element altogether. The filters do a pretty good job of adjusting their width on their own. Here's what it would look like with no max width on the label. Screen.Recording.2023-11-16.at.5.54.35.PM.mov |
I tend to agree with @eschutho here. In my experience dashboard designers will usually tend to want the whole label to be visible, and if there's need for additional context that's not needed in the label, that can always be placed in the description to be displayed in the tooltip. So I vote for always showing the full label. |
I think removing max makes sense in this case, and good point @villebro about using description if needed. Let's do it :) |
...t-frontend/src/dashboard/components/nativeFilters/FilterBar/FilterControls/FilterControl.tsx
Outdated
Show resolved
Hide resolved
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.
Suggest to remove the max-width altogether
Co-authored-by: Elizabeth Thompson <eschutho@gmail.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #25883 +/- ##
==========================================
- Coverage 69.00% 69.00% -0.01%
==========================================
Files 1938 1938
Lines 75831 75843 +12
Branches 8427 8427
==========================================
+ Hits 52328 52332 +4
- Misses 21334 21341 +7
- Partials 2169 2170 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Ephemeral environment shutdown and build artifacts deleted. |
…pache#25883) Co-authored-by: Elizabeth Thompson <eschutho@gmail.com>
…pache#25883) Co-authored-by: Elizabeth Thompson <eschutho@gmail.com>
…pache#25883) Co-authored-by: Elizabeth Thompson <eschutho@gmail.com>
…pache#25883) Co-authored-by: Elizabeth Thompson <eschutho@gmail.com>
SUMMARY
Allow the size of the label to represent more of the filter title before truncation. Size changed from 60px to 96px
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
BEFORE:
AFTER:
TESTING INSTRUCTIONS
Create a filter with a title long enough to overflow 96px
ADDITIONAL INFORMATION