Skip to content

Commit 98ce242

Browse files
authored
fix: mobile styles on documentation page and missing react key (#3380)
1 parent fc7677a commit 98ce242

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

packages/typescriptlang-org/gatsby-ssr.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,5 @@ const CustomColorSwitcherCode = () => {
3838
}
3939

4040
exports.onRenderBody = ({ setPreBodyComponents }) => {
41-
setPreBodyComponents(<CustomColorSwitcherCode />)
41+
setPreBodyComponents(<CustomColorSwitcherCode key="CustomColorSwitcherCode" />)
4242
}

packages/typescriptlang-org/src/templates/documentation.scss

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,19 @@
4848
flex-direction: row;
4949
width: 100%;
5050

51+
aside.handbook-toc {
52+
@media (max-width: $screen-xs) {
53+
padding: 0 0.5rem;
54+
box-sizing: border-box;
55+
}
56+
}
57+
58+
.whitespace.raised {
59+
width: fill-available;
60+
width: -moz-available;
61+
width: -webkit-fill-available;
62+
}
63+
5164
@media (max-width: 999px) {
5265
flex-direction: column;
5366
}

0 commit comments

Comments
 (0)