Skip to content

Commit a6365a0

Browse files
fix(TableOfContents): Adjust height on mobile (#4713)
It looks like folks wanted to add more space to the table of contents so items weren't getting cut off, but that this was accidentally applied to mobile instead of the desktop view where it's relevant. Targeting the style there fixes both issues.
1 parent 16f5315 commit a6365a0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/documentation-framework/components/tableOfContents/tableOfContents.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939

4040
.ws-toc .pf-v6-c-jump-links__main {
4141
scrollbar-width: none;
42-
margin-bottom: var(--jump-links-main-margin-bottom);
4342
}
4443

4544
/* Hide TOC scrollbar Chrome, Safari & Opera */
@@ -72,3 +71,9 @@
7271
text-wrap: wrap;
7372
text-align: left;
7473
}
74+
75+
@media (min-width: 1451px) {
76+
.ws-toc .pf-v6-c-jump-links__main {
77+
margin-bottom: var(--jump-links-main-margin-bottom);
78+
}
79+
}

0 commit comments

Comments
 (0)