mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 15:28:57 +00:00
fix(layout): specify selector for comments section in SCSS
This commit is contained in:
@@ -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,4 +1,4 @@
|
||||
#comments {
|
||||
body > #comments {
|
||||
padding: 2rem 1rem;
|
||||
display: flex;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user