Added a filled-star indicator to notes in Quick Access

This commit is contained in:
Yuri Karamian
2026-04-18 02:13:15 +02:00
parent ed2fc87e86
commit 9c092e90f1
+15
View File
@@ -1101,6 +1101,11 @@
<path d="M12 17v5"/><path d="M9 2h6l-1 7h4l-2 4H8l-2-4h4L9 2z"/> <path d="M12 17v5"/><path d="M9 2h6l-1 7h4l-2 4H8l-2-4h4L9 2z"/>
</svg> </svg>
{/if} {/if}
{#if $viewMode !== 'quickaccess' && $quickAccessPaths.includes(note.relative_path)}
<svg width="13" height="13" viewBox="0 0 24 24" fill="currentColor" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="quickaccess-icon">
<polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"/>
</svg>
{/if}
{note.meta.title} {note.meta.title}
</span> </span>
{#if getNotebookPath(note)} {#if getNotebookPath(note)}
@@ -1115,6 +1120,11 @@
<path d="M12 17v5"/><path d="M9 2h6l-1 7h4l-2 4H8l-2-4h4L9 2z"/> <path d="M12 17v5"/><path d="M9 2h6l-1 7h4l-2 4H8l-2-4h4L9 2z"/>
</svg> </svg>
{/if} {/if}
{#if $viewMode !== 'quickaccess' && $quickAccessPaths.includes(note.relative_path)}
<svg width="13" height="13" viewBox="0 0 24 24" fill="currentColor" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="quickaccess-icon">
<polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"/>
</svg>
{/if}
{note.meta.title} {note.meta.title}
</div> </div>
<div class="note-preview">{note.preview}</div> <div class="note-preview">{note.preview}</div>
@@ -1632,6 +1642,11 @@
flex-shrink: 0; flex-shrink: 0;
} }
.quickaccess-icon {
color: var(--text-accent);
flex-shrink: 0;
}
.note-preview { .note-preview {
font-size: 0.85em; font-size: 0.85em;
color: var(--text-tertiary); color: var(--text-tertiary);