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

UX: Tweak JS height calculation logic #42

Merged
merged 1 commit into from
Dec 22, 2023
Merged

UX: Tweak JS height calculation logic #42

merged 1 commit into from
Dec 22, 2023

Conversation

davidtaylorhq
Copy link
Member

  • Moves the height calculation to the wrapper element so we don't need to re-calculate for every list
  • Instead of enumerating the sibling elements, calculate an --kanban-offset value for the top of the wrapper, and then use css viewport height to work out how much space is remaining
  • Set a minimum of 500px so that the kanban is still usable on sites with very large headers/footers.

@davidtaylorhq davidtaylorhq force-pushed the js-height branch 2 times, most recently from e0ce388 to ca7fc50 Compare December 22, 2023 13:31
Base automatically changed from no-sidebar-full-width to main December 22, 2023 15:54
- Moves the height calculation to the wrapper element so we don't need to re-calculate for every list
- Instead of enumerating the sibling elements, calculate an `--kanban-offset` value for the top of the wrapper, and then use css viewport height to work out how much space is remaining
- Set a minimum of 500px so that the kanban is still usable on sites with very large headers/footers.
@davidtaylorhq davidtaylorhq marked this pull request as ready for review December 22, 2023 15:55
@davidtaylorhq davidtaylorhq merged commit 989c34f into main Dec 22, 2023
4 checks passed
@davidtaylorhq davidtaylorhq deleted the js-height branch December 22, 2023 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants