Skip to content

Commit ba012c0

Browse files
authored
fix layout issues (t3-oss#595)
1 parent b76ffcb commit ba012c0

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

www/src/components/navigation/sidebarToggle.astro

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ const isLanding = currentPage === "/";
3434

3535
<script is:inline>
3636
const button = document.querySelector("#sidebar-toggle");
37-
const body = document.querySelector("body");
3837

3938
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");
4141
button.toggleAttribute("aria-pressed");
4242
button.innerHTML =
4343
button.getAttribute("aria-pressed") === null

www/src/styles/global.css

+2-1
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@
109109

110110
.mobile-sidebar-toggle {
111111
overflow: hidden;
112+
height: 100vh;
112113
}
113114

114115
.mobile-sidebar-toggle #grid-left {
@@ -169,7 +170,7 @@
169170
@apply mt-8 text-sm;
170171
}
171172
.markdown table > tbody > tr > td > a {
172-
word-wrap: break-word;
173+
overflow-wrap: anywhere;
173174
}
174175
.markdown table {
175176
@apply max-w-full table-fixed;

0 commit comments

Comments
 (0)