Skip to content
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

feat(ui): made top day labels sticky #486

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

aaronthechen
Copy link
Contributor

@aaronthechen aaronthechen commented Jan 19, 2025

WIP for #357, would appreciate any help thanks!

Currently I have it such that the top bar with the day labels is sticky when the window height is small enough, but I have two main problems:

  • UI: I'm not really sure how to change the UI to allow for the sticky header, as the first time, 8 AM, can no longer be on the first horizontal line with the day labels. The Google calendar example resolves this by putting a gmt-5 on the line and the time below it, so I have something similar (image below):

  • Padding issue: Currently the padding is good when the scroll bar appears, but if the window is fullscreened (no scroll) then the padding for the days and the times is messed up. Image also provided below

  • Units: I had to put a decent amount of "arbitrary" paddings to actually line up the two sections, i.e. pr-7.5 for the top bar. Just wanted some feedback on some of the unit choices, whether they align with the figma/design principles, etc.

Before:
image

After (note the 8 AM line change):
image

Padding issue image when scrollbar is not present (fullscreen):
image


This change is Reviewable

@Razboy20 Razboy20 added feature UI/UX-figma PRs that fulfill a task on the UI/UX & Feature Roadmap labels Jan 19, 2025
@Razboy20 Razboy20 marked this pull request as draft January 19, 2025 21:47
@doprz doprz added this to the v2.1.0 milestone Jan 20, 2025
@IsaDavRod IsaDavRod modified the milestones: v2.1.0, v2.2.0 Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature UI/UX-figma PRs that fulfill a task on the UI/UX & Feature Roadmap
Projects
None yet
Development

Successfully merging this pull request may close these issues.

When window height is small enough, always show scrollbar and have the day labels MON, TUE, etc, sticky.
4 participants