Skip to content

Commit 58e004e

Browse files
authored
fix(ui): variable width toc (#9062)
* fix(ui): variable width toc * fixup!
1 parent 4aed720 commit 58e004e

4 files changed

Lines changed: 10 additions & 1 deletion

File tree

‎.changeset/tasty-toes-smile.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@node-core/ui-components': patch
3+
---
4+
5+
Widen the article layout to 120rem on 3xl screens and give the extra space to the
6+
metabar, so table of contents entries no longer wrap.

‎packages/ui-components/src/Containers/Article/index.module.css‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
ml:grid-rows-[1fr]
88
ml:overflow-visible
99
ml:[grid-template-areas:'sidebar_main''sidebar_footer']
10-
3xl:grid-cols-[--spacing(80)_1fr_--spacing(80)]
10+
3xl:grid-cols-[--spacing(80)_1fr_--spacing(144)]
11+
3xl:max-w-12xl
1112
mx-auto
1213
block
1314
w-full

‎packages/ui-components/src/Containers/Footer/index.module.css‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
.innerContainer {
1515
@apply max-w-10xl
16+
3xl:max-w-12xl
1617
mx-auto
1718
flex
1819
flex-col

‎packages/ui-components/src/Containers/NavBar/index.module.css‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
.innerContainer {
1313
@apply max-w-10xl
14+
3xl:max-w-12xl
1415
xl:mx-auto
1516
xl:flex
1617
xl:h-16

0 commit comments

Comments
 (0)