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 | |
| parent | b1a22e08f58ca44d089e21aee52bea0544aa5959 (diff) | |
| download | opencode-3ba03a97dc8a8145cfb3c12b13210650742be319.tar.gz opencode-3ba03a97dc8a8145cfb3c12b13210650742be319.zip | |
fix: search bar size and padding, and shortcut style
| -rw-r--r-- | packages/app/src/components/session/session-header.tsx | 11 | ||||
| -rw-r--r-- | packages/ui/src/styles/theme.css | 2 |
2 files changed, 10 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> )} diff --git a/packages/ui/src/styles/theme.css b/packages/ui/src/styles/theme.css index 5724bc9f7..d2d5c4c73 100644 --- a/packages/ui/src/styles/theme.css +++ b/packages/ui/src/styles/theme.css @@ -58,6 +58,8 @@ 0 16px 48px -6px light-dark(hsl(0 0% 0% / 0.05), hsl(0 0% 0% / 0.15)), 0 6px 12px -2px light-dark(hsl(0 0% 0% / 0.025), hsl(0 0% 0% / 0.1)), 0 1px 2.5px light-dark(hsl(0 0% 0% / 0.025), hsl(0 0% 0% / 0.1)); + --shadow-xxs-border: + 0 0 0 0.5px var(--border-weak-base, rgba(0, 0, 0, 0.07)); --shadow-xs-border: 0 0 0 1px var(--border-base, rgba(11, 6, 0, 0.2)), 0 1px 2px -1px rgba(19, 16, 16, 0.04), 0 1px 2px 0 rgba(19, 16, 16, 0.06), 0 1px 3px 0 rgba(19, 16, 16, 0.08); |
