We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfa505a commit 6ecd8c9Copy full SHA for 6ecd8c9
src/client/sidebar.js
@@ -2,7 +2,7 @@ const toggle = document.querySelector("#observablehq-sidebar-toggle");
2
if (toggle) {
3
let indeterminate = toggle.indeterminate;
4
toggle.onclick = () => {
5
- const matches = matchMedia("(min-width: calc(640px + 4rem + 0.5rem + 240px + 2rem))").matches;
+ const matches = matchMedia("(min-width: calc(640px + 17px * 4 + 240px + 17px * 2))").matches;
6
if (indeterminate) (toggle.checked = !matches), (indeterminate = false);
7
else if (toggle.checked === matches) indeterminate = true;
8
toggle.indeterminate = indeterminate;
0 commit comments