Improve sidebar notebook/unfiled icons and list indentation

This commit is contained in:
Yuri Karamian
2026-07-05 02:45:55 +02:00
parent 6d5f12c47c
commit 21dd2d1681
+3 -3
View File
@@ -942,7 +942,7 @@
{@const isCollapsed = $collapsedNotebooks.includes(nb.path)} {@const isCollapsed = $collapsedNotebooks.includes(nb.path)}
{@const iconSrc = getNotebookIconSrc(nb)} {@const iconSrc = getNotebookIconSrc(nb)}
{#if editingNotebook === nb.path} {#if editingNotebook === nb.path}
<div class="notebook-item" style="padding-left: {depth * 16}px"> <div class="notebook-item" style="padding-left: {4 + depth * 16}px">
<input <input
type="text" type="text"
class="rename-input" class="rename-input"
@@ -962,7 +962,7 @@
class:drop-target={dropTargetPath === nb.path && dropPosition === 'into'} class:drop-target={dropTargetPath === nb.path && dropPosition === 'into'}
class:drop-above={dropTargetPath === nb.path && dropPosition === 'above'} class:drop-above={dropTargetPath === nb.path && dropPosition === 'above'}
class:drop-below={dropTargetPath === nb.path && dropPosition === 'below'} class:drop-below={dropTargetPath === nb.path && dropPosition === 'below'}
style="padding-left: {depth * 16}px" style="padding-left: {4 + depth * 16}px"
data-nb-path={nb.path} data-nb-path={nb.path}
onclick={() => selectNotebook(nb)} onclick={() => selectNotebook(nb)}
onkeydown={(e) => { onkeydown={(e) => {
@@ -1302,7 +1302,7 @@
align-items: center; align-items: center;
gap: 6px; gap: 6px;
width: 100%; width: 100%;
padding: 5px 8px 5px 0; padding: 5px 8px 5px 4px;
border: none; border: none;
background: none; background: none;
border-radius: 6px; border-radius: 6px;