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: Make lists fill width of viewport when sidebar is hidden #41

Merged
merged 1 commit into from
Dec 22, 2023

Conversation

davidtaylorhq
Copy link
Member

No description provided.

// No sidebar. Make container fill the viewport width and center lists
body:not(.has-sidebar-page) &:not(.kanban-fullscreen) {
width: 100vw;
left: calc(-50vw + 50%);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't this equal to zero?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope. 50vw is half the width of the viewport. 50% is half the width of the containing element (in this case, #main-outlet).

So what we're saying here is: adjust the left value so that the element is positioned at the left edge of the viewport.

SCR-20231222-lgrc-2

@davidtaylorhq davidtaylorhq merged commit 6ae7437 into main Dec 22, 2023
8 checks passed
@davidtaylorhq davidtaylorhq deleted the no-sidebar-full-width branch December 22, 2023 15:54
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.

3 participants