diff --git a/src/lib/components/InfoPanel.svelte b/src/lib/components/InfoPanel.svelte index 920a3c2..12aed7e 100644 --- a/src/lib/components/InfoPanel.svelte +++ b/src/lib/components/InfoPanel.svelte @@ -1,8 +1,6 @@ {#if $showInfo} @@ -201,24 +178,6 @@ {/if} - {#if stats} -
- {#if orphans === null} - - {:else if orphans.length === 0} -

No orphaned attachments. Nothing to clean up.

- {:else} -

{orphans.length} {orphans.length === 1 ? 'attachment is' : 'attachments are'} not referenced by any note ({formatSize(orphanTotal)}).

-
- {#each orphans as o} -
{o.name}{formatSize(o.size)}
- {/each} -
- -

Moved to the vault's trash folder (recoverable), not permanently deleted.

- {/if} -
- {/if}

Created by Yuri Karamian

@@ -481,71 +440,6 @@ .info-link:hover { background: var(--accent-light); } - .info-cleanup { - width: 100%; - margin-top: 16px; - display: flex; - flex-direction: column; - align-items: center; - gap: 8px; - } - .cleanup-btn { - display: inline-flex; - align-items: center; - justify-content: center; - gap: 6px; - background: var(--bg-secondary); - border: 1px solid var(--border-color); - border-radius: 8px; - color: var(--text-primary); - font-size: 13px; - padding: 7px 14px; - cursor: pointer; - } - .cleanup-btn:hover:not(:disabled) { background: var(--bg-hover); } - .cleanup-btn:disabled { opacity: 0.6; cursor: default; } - .cleanup-msg { - font-size: 13px; - color: var(--text-secondary); - text-align: center; - } - .cleanup-list { - width: 100%; - max-height: 140px; - overflow-y: auto; - background: var(--bg-secondary); - border: 1px solid var(--border-light); - border-radius: 8px; - } - .cleanup-row { - display: flex; - justify-content: space-between; - gap: 12px; - padding: 5px 12px; - font-size: 12px; - } - .cleanup-name { - color: var(--text-secondary); - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; - } - .cleanup-size { - color: var(--text-tertiary); - flex-shrink: 0; - } - .cleanup-hint { - font-size: 11px; - color: var(--text-tertiary); - text-align: center; - } - .spinner-icon { - animation: spin 0.8s linear infinite; - } - @keyframes spin { - from { transform: rotate(0deg); } - to { transform: rotate(360deg); } - } .shortcuts-section { width: 100%; diff --git a/src/lib/components/SettingsPanel.svelte b/src/lib/components/SettingsPanel.svelte index 73806f8..0ff3e62 100644 --- a/src/lib/components/SettingsPanel.svelte +++ b/src/lib/components/SettingsPanel.svelte @@ -1,12 +1,13 @@