mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 15:28:57 +00:00
chore(i): insignificant changes
This commit is contained in:
@@ -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 })
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user