File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -34,10 +34,10 @@ const isLanding = currentPage === "/";
34
34
35
35
<script is:inline >
36
36
const button = document.querySelector("#sidebar-toggle");
37
- const body = document.querySelector("body");
38
37
39
38
button.addEventListener("click", () => {
40
- body.classList.toggle("mobile-sidebar-toggle");
39
+ // html query selector is already defined in the themeToggleButton script
40
+ html.classList.toggle("mobile-sidebar-toggle");
41
41
button.toggleAttribute("aria-pressed");
42
42
button.innerHTML =
43
43
button.getAttribute("aria-pressed") === null
Original file line number Diff line number Diff line change 109
109
110
110
.mobile-sidebar-toggle {
111
111
overflow : hidden;
112
+ height : 100vh ;
112
113
}
113
114
114
115
.mobile-sidebar-toggle # grid-left {
169
170
@apply mt-8 text-sm;
170
171
}
171
172
.markdown table > tbody > tr > td > a {
172
- word -wrap: break-word ;
173
+ overflow -wrap: anywhere ;
173
174
}
174
175
.markdown table {
175
176
@apply max-w-full table-fixed;
You can’t perform that action at this time.
0 commit comments