Skip to content

Commit

Permalink
Merge pull request #59 from 72mins/72mins-wide_sidebar
Browse files Browse the repository at this point in the history
fix(ui): sidebar gets wider with wide content
  • Loading branch information
BrandonRomano authored Dec 20, 2024
2 parents 9540ee1 + af14ea5 commit 003dfa6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pages/docs/[...path]/DocsPage.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
margin-top: 0px;
max-width: 100%;

--sidebar-min-width: 320px;
--sidebar-width: 320px;

& .sidebar {
min-width: var(--sidebar-min-width);
width: var(--sidebar-width);

@media (max-width: 784px) {
display: none;
Expand Down Expand Up @@ -76,7 +76,7 @@
flex-direction: column;
margin: 38px auto 88px auto;
padding: 0 24px;
max-width: min(800px, calc(100vw - var(--sidebar-min-width)));
max-width: min(800px, calc(100vw - var(--sidebar-width)));
flex-grow: 1;

@media (max-width: 784px) {
Expand Down

0 comments on commit 003dfa6

Please sign in to comment.