diff --git a/frontend/popout.html b/frontend/popout.html
index bd35915..2bbdbcf 100644
--- a/frontend/popout.html
+++ b/frontend/popout.html
@@ -8,6 +8,7 @@
document.documentElement.setAttribute('data-theme', localStorage.getItem('obsigate-theme') || 'dark');
+
@@ -873,6 +874,14 @@ const RightSidebarManager = {
});
}
+ // Render Mermaid diagrams
+ setTimeout(() => {
+ if (typeof mermaid !== 'undefined') {
+ mermaid.initialize({ startOnLoad: false, theme: document.documentElement.getAttribute('data-theme') === 'dark' ? 'dark' : 'default' });
+ mermaid.run({ querySelector: '.mermaid' }).catch(() => {});
+ }
+ }, 100);
+
// Hide loading
document.getElementById('loading').style.opacity = '0';
setTimeout(() => {
@@ -1384,11 +1393,11 @@ const RightSidebarManager = {
const booleanFlags = ['publish', 'favoris', 'template', 'task', 'archive', 'draft', 'private']
.map(key => ({ key, value: !!frontmatter[key] }));
- // Toggle state
- let isOpen = true;
+ // Toggle state — collapsed by default
+ let isOpen = false;
// Build header with chevron
- const chevron = el("span", "fm-chevron open");
+ const chevron = el("span", "fm-chevron closed");
chevron.innerHTML = '';
const fmHeader = el("div", "fm-header");
@@ -1532,6 +1541,9 @@ const RightSidebarManager = {
if (window.lucide) window.lucide.createIcons();
});
+ // Hide card initially (collapsed by default)
+ acCard.style.display = "none";
+
// Wrap in section
const fmSection = el("div", "fm-section");
fmSection.appendChild(fmHeader);