Skip to content

Commit 63ca286

Browse files
committed
fix tablet layout
1 parent dec3b22 commit 63ca286

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

scaladoc/resources/dotty_res/styles/theme/components/table-of-content.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
display: flex;
33
flex-direction: column;
44
padding: 0 calc(1 * var(--base-spacing));
5-
width: calc(28 * var(--base-spacing));
5+
width: calc(29 * var(--base-spacing));
66
}
77

88
#toc-container {
@@ -58,6 +58,11 @@
5858
}
5959

6060
@media (max-width: 1024px) {
61+
#toc {
62+
margin-left: calc(6 * var(--base-spacing));
63+
margin-right: 0;
64+
}
65+
6166
#toc.sidebar-shown {
6267
display: none;
6368
}

scaladoc/resources/dotty_res/styles/theme/layout/content.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
}
8383

8484
#content > div:first-child {
85-
width: auto;
85+
width: calc(100% - calc(29 * var(--base-spacing)));
8686
}
8787

8888
#content.sidebar-shown {

0 commit comments

Comments
 (0)