diff options
| author | OpeOginni <[email protected]> | 2026-01-18 15:10:38 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-01-18 08:10:38 -0600 |
| commit | ad2e03284bad0c828aaed8c41cecd67672f4fe4a (patch) | |
| tree | c40fb122c81d6584115fa8ec792fb796fef3d4bd | |
| parent | 6c0991d1623b620e8c95d9ea8a184861efe57f23 (diff) | |
| download | opencode-ad2e03284bad0c828aaed8c41cecd67672f4fe4a.tar.gz opencode-ad2e03284bad0c828aaed8c41cecd67672f4fe4a.zip | |
refactor(desktop): improve layout and styling of session search button (#9251)
| -rw-r--r-- | packages/app/src/components/session/session-header.tsx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/app/src/components/session/session-header.tsx b/packages/app/src/components/session/session-header.tsx index 4c709feef..96ed762c4 100644 --- a/packages/app/src/components/session/session-header.tsx +++ b/packages/app/src/components/session/session-header.tsx @@ -133,14 +133,14 @@ export function SessionHeader() { 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 h-3.5 flex items-center overflow-visible"> + <div class="flex min-w-0 flex-1 items-center gap-2 overflow-visible"> + <Icon name="magnifying-glass" size="normal" class="icon-base shrink-0" /> + <span class="flex-1 min-w-0 text-14-regular text-text-weak truncate h-4.5 flex items-center"> Search {name()} </span> </div> - <Show when={hotkey()}>{(keybind) => <Keybind>{keybind()}</Keybind>}</Show> + <Show when={hotkey()}>{(keybind) => <Keybind class="shrink-0">{keybind()}</Keybind>}</Show> </button> </Portal> )} |
