fixes + theme

This commit is contained in:
th committed 2026-04-11 13:01:27 +02:00
1 parent 5af49655d6
commit 22f73ab3b9
25 files changed
+1004 -206

No files matched your search

+5 -3
View File
@@ -417,6 +417,7 @@ function renderSidebar(card) {
if (groupCards && groupCards.length > 1) {
sidebar.classList.remove('hidden');
sidebar.dataset.groupId = String(groupCards[0].id);
$('detail-sidebar-count').textContent = groupCards.length;
list.innerHTML = groupCards.map(gc => {
const active = gc.id == card.id;
@@ -438,6 +439,7 @@ function renderSidebar(card) {
});
} else {
sidebar.classList.add('hidden');
delete sidebar.dataset.groupId;
}
}
@@ -451,7 +453,7 @@ function updateDoneButton(card) {
btn.classList.toggle('text-t-accent', isDone);
btn.classList.toggle('border-t-accent', isDone);
}
if (label) label.textContent = isDone ? 'undone' : 'done';
if (label) label.textContent = isDone ? 'Undone' : 'Done';
}
function showContent(card) {
@@ -892,7 +894,7 @@ function loadSplitCard(id) {
<i class="ph ph-arrow-left text-sm"></i><span class="font-pixel text-[10px]">${splitLastQuery ? 'results' : 'related cards'}</span>
</button>
<button id="split-promote" class="flex items-center gap-1.5 px-3 py-2 text-xs text-t-muted hover:text-t-accent hover:bg-t-raised transition-colors" title="open as main card">
<i class="ph ph-arrow-line-left text-sm"></i><span class="font-pixel text-[10px]">focus</span>
<i class="ph ph-arrow-line-left text-sm"></i><span class="font-pixel text-[10px]">Focus</span>
</button>
</div>`;
splitPicks.querySelector('#split-back').addEventListener('click', restoreSplitList);
@@ -1015,7 +1017,7 @@ $('detail-done')?.addEventListener('click', async () => {
$('detail-delete')?.addEventListener('click', async () => {
if (!state.viewingCard) return;
if (localStorage.getItem('hyprcrd-confirm-delete') !== '0') {
const ok = await showDialog({ title: 'delete_card', message: `Really delete "${state.viewingCard.title}"?`, danger: true, okLabel: 'delete' });
const ok = await showDialog({ title: 'delete_card', message: `Really delete "${state.viewingCard.title}"?`, danger: true, okLabel: 'Delete' });
if (!ok) return;
}
pushCardDelete('delete', snapshotCard(state.viewingCard));