fixes + theme
This commit is contained in:
1 parent
5af49655d6
commit
22f73ab3b9
25 files changed
+1004
-206
No files matched your search
@@ -306,6 +306,31 @@ if (groupBar) {
|
||||
injectGroupBarButton();
|
||||
}
|
||||
|
||||
// ── Detail-view sidebar button (shown when browsing a group card) ──
|
||||
|
||||
function injectDetailSidebarButton() {
|
||||
const sidebar = $('detail-sidebar');
|
||||
if (!sidebar) return;
|
||||
if (sidebar.querySelector('.slideshow-present-btn')) return;
|
||||
// Sidebar header is the first direct child div
|
||||
const header = sidebar.firstElementChild;
|
||||
if (!header) return;
|
||||
const btn = document.createElement('button');
|
||||
btn.className = 'slideshow-present-btn slideshow-present-btn-sidebar';
|
||||
btn.type = 'button';
|
||||
btn.title = 'present this group';
|
||||
btn.innerHTML = '<i class="ph ph-projector-screen text-sm"></i>';
|
||||
btn.addEventListener('click', async (e) => {
|
||||
e.stopPropagation();
|
||||
const pid = sidebar.dataset.groupId;
|
||||
if (pid) await startPresentationForGroup(pid);
|
||||
});
|
||||
header.appendChild(btn);
|
||||
}
|
||||
|
||||
if ($('detail-sidebar')) injectDetailSidebarButton();
|
||||
else document.addEventListener('DOMContentLoaded', injectDetailSidebarButton, { once: true });
|
||||
|
||||
// ── Hotspot editor ───────────────────────────────────────────────
|
||||
|
||||
const ed = {
|
||||
|
||||
Reference in new issue
Block a user