diff options
| author | David Hill <[email protected]> | 2026-01-16 11:36:56 +0000 |
|---|---|---|
| committer | David Hill <[email protected]> | 2026-01-16 11:55:15 +0000 |
| commit | 3ba03a97dc8a8145cfb3c12b13210650742be319 (patch) | |
| tree | acc9d1186c2c026918df3bb0eb37106fcb7ee2fb /packages/app/src | |
| parent | b1a22e08f58ca44d089e21aee52bea0544aa5959 (diff) | |
| download | opencode-3ba03a97dc8a8145cfb3c12b13210650742be319.tar.gz opencode-3ba03a97dc8a8145cfb3c12b13210650742be319.zip | |
fix: search bar size and padding, and shortcut style
Diffstat (limited to 'packages/app/src')
| -rw-r--r-- | packages/app/src/components/session/session-header.tsx | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/packages/app/src/components/session/session-header.tsx b/packages/app/src/components/session/session-header.tsx index 4ba5413df..4b083771f 100644 --- a/packages/app/src/components/session/session-header.tsx +++ b/packages/app/src/components/session/session-header.tsx @@ -54,17 +54,22 @@ export function SessionHeader() { <Portal mount={mount()}> <button type="button" - class="hidden md:flex w-[320px] h-8 p-1.5 items-center gap-2 justify-between rounded-md border border-border-weak-base bg-surface-raised-base transition-colors cursor-default hover:bg-surface-raised-base-hover focus:bg-surface-raised-base-hover active:bg-surface-raised-base-active" + class="hidden md:flex w-[320px] p-1 pl-1.5 items-center gap-2 justify-between rounded-md border border-border-weak-base bg-surface-raised-base transition-colors cursor-default hover:bg-surface-raised-base-hover focus:bg-surface-raised-base-hover active:bg-surface-raised-base-active" onClick={() => command.trigger("file.open")} > <div class="flex items-center gap-2"> <Icon name="magnifying-glass" size="normal" class="icon-base" /> - <span class="flex-1 min-w-0 text-14-regular text-text-weak truncate">Search {name()}</span> + <span class="flex-1 min-w-0 text-14-regular text-text-weak truncate" style={{ "line-height": 1 }}> + Search {name()} + </span> </div> <Show when={hotkey()}> {(keybind) => ( - <span class="shrink-0 flex items-center justify-center h-5 px-2 rounded-[2px] border border-border-weak-base bg-surface-base text-12-medium text-text-weak"> + <span + class="shrink-0 flex items-center justify-center h-5 px-2 rounded-[2px] bg-surface-base text-12-medium text-text-weak" + style={{ "box-shadow": "var(--shadow-xxs-border)" }} + > {keybind()} </span> )} |
