fix(layout): specify selector for comments section in SCSS

This commit is contained in:
Cell
2026-04-22 15:02:30 +08:00
parent 4158ebffbd
commit 95664509a0
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ export function isMobile() {
* @returns {Boolean} whether the TOC should be rendered as static
*/
export function isTocStatic() {
return document.getElementById('toc-static').dataset.kept === 'true' || window.matchMedia('only screen and (max-width: 960px)').matches;
return document.getElementById('toc-static')?.dataset?.kept === 'true' || window.matchMedia('only screen and (max-width: 960px)').matches;
}
/**
+1 -1
View File
@@ -1,4 +1,4 @@
#comments {
body > #comments {
padding: 2rem 1rem;
display: flex;