| @@ -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; } |