chore(i): insignificant changes

This commit is contained in:
Cell
2026-05-04 14:11:45 +08:00
parent 502e427a0c
commit 9c04cfd47a
3 changed files with 7 additions and 3 deletions
+2 -2
View File
@@ -286,11 +286,11 @@ function collectMermaidContainers(root = document) {
*/
async function renderActiveLayerInContainer(container) {
if (!container) return
const el = container.querySelector(isDarkMode() ? '.mermaid-dark' : '.mermaid')
const darkMode = isDarkMode()
const el = container.querySelector(darkMode ? '.mermaid-dark' : '.mermaid')
if (!el) return
if (el.hasAttribute('data-processed') || el.querySelector('svg')) return
if (!isNodeVisuallyActive(el)) return
const darkMode = isDarkMode()
await renderMermaidElement(el, { theme: getTheme(), darkMode })
}
+1 -1
View File
@@ -122,7 +122,7 @@
.toc-content {
overflow-y: auto;
overscroll-behavior: contain;
max-height: fi-var(toc-content-max-height, calc(100dvh - #{2 * #{fi-var(header-height)}}));
max-height: fi-var(toc-content-max-height, 90dvh);
@include scrollbar-width(none, 0);
&.always-active ul,
@@ -46,6 +46,10 @@
}
.diagram-tabs {
:is(.mermaid, .mermaid-dark)[data-processed] svg {
will-change: transform;
}
.tabs-actions .fullscreen-btn {
position: relative;
margin-inline-start: 4px;