bots-garden/sidekickspublic Fork
⑂ 5960dd9
Commits
⬇ Clone ▾
git clone https://git.rickub.com/bots-garden/sidekicks.git
git clone ssh://git@rickub.com/bots-garden/sidekicks.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

Download ZIP

Arbre des fichiers : icônes et noms alignés

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
k33g committed 2026-11-09T06:38:02+01:00 Browse files
5960dd9 parent: 4ba37d5
modified frontend/src/lib/agent/FilesTab.svelte +7 -4
@@ -463,13 +463,13 @@
463463 >
464464 {#if renaming === entry.path}
465465 <form class="rename" onsubmit={(event) => { event.preventDefault(); void rename() }}>
466- <span aria-hidden="true">{iconFor(entry.name, entry.dir, open[entry.path])}</span>
466+ <span class="icon" aria-hidden="true">{iconFor(entry.name, entry.dir, open[entry.path])}</span>
467467 <input use:focus bind:value={renameValue} aria-label={t('workspace.renameEntry', { name: entry.name })} onblur={() => void rename()} onkeydown={(event) => { if (event.key === 'Escape') { event.stopPropagation(); renaming = '' } }} />
468468 </form>
469469 {:else}
470470 <button class="row" onclick={(event) => click(event, entry)} ondblclick={(event) => !entry.protected && !event.metaKey && !event.ctrlKey && !event.shiftKey && startRename(entry.path)} title={entry.path}>
471- <span aria-hidden="true">{iconFor(entry.name, entry.dir, open[entry.path])}</span>
472- {entry.name}
471+ <span class="icon" aria-hidden="true">{iconFor(entry.name, entry.dir, open[entry.path])}</span>
472+ <span class="name">{entry.name}</span>
473473 </button>
474474 {/if}
475475 {#if revealable}
@@ -610,7 +610,10 @@
610610 .menu button { border: none; background: none; text-align: left; padding: 4px 10px; border-radius: 4px; font-size: 12.5px; }
611611 .menu button:hover, .menu button:focus-visible { background: var(--panel-2); }
612612 .danger-text { color: var(--danger); }
613- .row { flex: 1; min-width: 0; display: flex; gap: 6px; text-align: left; border: none; background: none; padding: 3px 4px; font-family: var(--mono); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
613+ .row { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; text-align: left; border: none; background: none; padding: 3px 4px; font-family: var(--mono); font-size: 12.5px; line-height: 18px; white-space: nowrap; }
614+ /* The emoji is taller than the monospace text: a fixed box, centred, so that every name starts at the same place and sits on the same line as its icon. */
615+ .icon { flex: none; width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; line-height: 1; }
616+ .name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
614617 .action { border: none; background: none; padding: 0 4px; font-size: 11px; opacity: 0; }
615618 .reveal { border: none; background: none; padding: 0; font-size: 12px; color: var(--accent); }
616619 .lock { padding: 0 6px; font-size: 11px; opacity: 0.7; }
@@ -463,13 +463,13 @@
463 >463 >
464 {#if renaming === entry.path}464 {#if renaming === entry.path}
465 <form class="rename" onsubmit={(event) => { event.preventDefault(); void rename() }}>465 <form class="rename" onsubmit={(event) => { event.preventDefault(); void rename() }}>
466- <span aria-hidden="true">{iconFor(entry.name, entry.dir, open[entry.path])}</span>466+ <span class="icon" aria-hidden="true">{iconFor(entry.name, entry.dir, open[entry.path])}</span>
467 <input use:focus bind:value={renameValue} aria-label={t('workspace.renameEntry', { name: entry.name })} onblur={() => void rename()} onkeydown={(event) => { if (event.key === 'Escape') { event.stopPropagation(); renaming = '' } }} />467 <input use:focus bind:value={renameValue} aria-label={t('workspace.renameEntry', { name: entry.name })} onblur={() => void rename()} onkeydown={(event) => { if (event.key === 'Escape') { event.stopPropagation(); renaming = '' } }} />
468 </form>468 </form>
469 {:else}469 {:else}
470 <button class="row" onclick={(event) => click(event, entry)} ondblclick={(event) => !entry.protected && !event.metaKey && !event.ctrlKey && !event.shiftKey && startRename(entry.path)} title={entry.path}>470 <button class="row" onclick={(event) => click(event, entry)} ondblclick={(event) => !entry.protected && !event.metaKey && !event.ctrlKey && !event.shiftKey && startRename(entry.path)} title={entry.path}>
471- <span aria-hidden="true">{iconFor(entry.name, entry.dir, open[entry.path])}</span>471+ <span class="icon" aria-hidden="true">{iconFor(entry.name, entry.dir, open[entry.path])}</span>
472- {entry.name}472+ <span class="name">{entry.name}</span>
473 </button>473 </button>
474 {/if}474 {/if}
475 {#if revealable}475 {#if revealable}
@@ -610,7 +610,10 @@
610 .menu button { border: none; background: none; text-align: left; padding: 4px 10px; border-radius: 4px; font-size: 12.5px; }610 .menu button { border: none; background: none; text-align: left; padding: 4px 10px; border-radius: 4px; font-size: 12.5px; }
611 .menu button:hover, .menu button:focus-visible { background: var(--panel-2); }611 .menu button:hover, .menu button:focus-visible { background: var(--panel-2); }
612 .danger-text { color: var(--danger); }612 .danger-text { color: var(--danger); }
613- .row { flex: 1; min-width: 0; display: flex; gap: 6px; text-align: left; border: none; background: none; padding: 3px 4px; font-family: var(--mono); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }613+ .row { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; text-align: left; border: none; background: none; padding: 3px 4px; font-family: var(--mono); font-size: 12.5px; line-height: 18px; white-space: nowrap; }
614+ /* The emoji is taller than the monospace text: a fixed box, centred, so that every name starts at the same place and sits on the same line as its icon. */
615+ .icon { flex: none; width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; line-height: 1; }
616+ .name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
614 .action { border: none; background: none; padding: 0 4px; font-size: 11px; opacity: 0; }617 .action { border: none; background: none; padding: 0 4px; font-size: 11px; opacity: 0; }
615 .reveal { border: none; background: none; padding: 0; font-size: 12px; color: var(--accent); }618 .reveal { border: none; background: none; padding: 0; font-size: 12px; color: var(--accent); }
616 .lock { padding: 0 6px; font-size: 11px; opacity: 0.7; }619 .lock { padding: 0 6px; font-size: 11px; opacity: 0.7; }