Improve workspace navigation, search, and tab actions

This commit is contained in:
Knotty Wyvern
2026-09-29 07:48:24 -07:00
parent bdc15e952d
commit 43106ed9c7
34 changed files with 1798 additions and 100 deletions
+4 -1
View File
@@ -1,9 +1,12 @@
<script lang="ts">
import type { IconName } from "./IconButton.svelte";
import { actionIcons } from "./actionIcons";
let { icon }: { icon: IconName } = $props();
</script>
<svg viewBox="0 0 24 24" aria-hidden="true">
{#if icon === "more"}
{#if icon === "up" || icon === "down"}
{@html actionIcons[icon]}
{:else if icon === "more"}
<circle cx="5" cy="12" r="1" /><circle cx="12" cy="12" r="1" /><circle cx="19" cy="12" r="1" />
{:else if icon === "chevron-down"}
<path d="m6 9 6 6 6-6" />
+2
View File
@@ -5,6 +5,8 @@
| "split"
| "more"
| "chevron-down"
| "up"
| "down"
| "maximize"
| "minimize"
| "window-maximize"
+3
View File
@@ -1,5 +1,8 @@
// Stroke icons share the same 24px grid and weight as IconButton.
export const actionIcons = {
pin: '<path d="m16 3 5 5-4 1-3 3 1 4-2 2-7-7 2-2 4 1 3-3ZM8 16l-5 5"/>',
book: '<path d="M12 6v15M3 3h5a4 4 0 0 1 4 3 4 4 0 0 1 4-3h5v15h-5a4 4 0 0 0-4 3 4 4 0 0 0-4-3H3Z"/>',
folder: '<path d="M3 7V4h6l3 3h9v13H3Z"/>',
rename: '<path d="M12 20h9M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4Z"/>',
'zoom-in': '<circle cx="10" cy="10" r="7"/><path d="m15 15 6 6M7 10h6M10 7v6"/>',
'zoom-out': '<circle cx="10" cy="10" r="7"/><path d="m15 15 6 6M7 10h6"/>',
+59
View File
@@ -0,0 +1,59 @@
.rs-find-bar {
display: flex;
flex-direction: column;
gap: 6px;
padding: 8px 10px;
background: var(--rs-bg-elevated);
color: var(--rs-text);
font: 13px/1.4 var(--rs-font-ui);
}
.rs-find-row, .rs-find-actions, .rs-find-field, .rs-find-options {
display: flex;
align-items: center;
gap: 6px;
min-width: 0;
}
.rs-find-row, .rs-find-options { flex-wrap: wrap; }
.rs-find-actions { flex: 0 0 auto; }
.rs-find-field {
flex: 1 1 180px;
min-height: 30px;
padding: 0 8px;
border: 1px solid var(--rs-border);
border-radius: var(--rs-control-radius);
background: var(--rs-bg);
color: var(--rs-text-dim);
}
.rs-find-field:focus-within { border-color: var(--rs-accent); }
.rs-find-field:has([aria-invalid="true"]) { border-color: var(--rs-error); }
.rs-find-field input {
width: 100%;
min-width: 0;
padding: 5px 0;
border: 0;
outline: none;
background: transparent;
color: var(--rs-text);
font: inherit;
}
.rs-find-field input::placeholder { color: var(--rs-text-dim); }
.rs-find-button {
min-height: 28px;
padding: 3px 9px;
border: 1px solid var(--rs-border);
border-radius: var(--rs-control-radius);
background: transparent;
color: var(--rs-text);
font: inherit;
white-space: nowrap;
}
.rs-find-button:hover:not(:disabled) { background: var(--rs-bg-active); color: var(--rs-accent); }
.rs-find-options { gap: 4px 14px; color: var(--rs-text-dim); font-size: 12px; }
.rs-find-options label { display: inline-flex; align-items: center; gap: 5px; min-height: 24px; cursor: pointer; }
.rs-find-options input { margin: 0; accent-color: var(--rs-accent); }
.rs-find-error { color: var(--rs-error); }
.live-writer .cm-panels.cm-panels-top { border-bottom: 1px solid var(--rs-border); }
.live-writer .cm-searchMatch { background: var(--rs-item-selection-bg); }
.live-writer .cm-searchMatch-selected { background: var(--rs-selection); outline: 1px solid var(--rs-accent); }