-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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: add fixed heights for date picker and table header (month and buttons) #26932
Conversation
Size Change: +40 B (0%) Total Size: 1.11 MB ℹ️ View Unchanged
|
📸 UI snapshots have been updated32 snapshot changes in total. 0 added, 32 modified, 0 deleted:
Triggered by this commit. |
@@ -7,6 +7,8 @@ | |||
// Tricky: needs to match the equivalent height button from LemonButton.scss | |||
--lemon-calendar-time-button-height: 2.3125rem; | |||
|
|||
height: 305px; |
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.
Might be worth making this a variable or at least saying what this value is composed of
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.
Added! good call on the self documentation.
…Hog/posthog into adam/date-picker-fixed-height-19964
📸 UI snapshots have been updated2 snapshot changes in total. 0 added, 2 modified, 0 deleted:
Triggered by this commit. |
Problem
Date picker jumping around is poor UX
Changes
Add fixed height to date
.LemonCalendar
so when clicking through the months the height is set to the highest the element will be to reduce jankyness in the height when passing through months.Before:
Fixed height for whole table
Fixed height for month table header
After:
Fixed height for whole table
Fixed height for month table header
Does this work well for both Cloud and self-hosted?
Yes
How did you test this code?
Tested the fix in major browsers, and shrunk the screen down to see if it works