Skip to content

Commit 7a9bd02

Browse files
authored
refactor(desktop): improve layout and styling of session search button (anomalyco#9251)
1 parent 9b1b016 commit 7a9bd02

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

packages/app/src/components/session/session-header.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,14 +133,14 @@ export function SessionHeader() {
133133
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"
134134
onClick={() => command.trigger("file.open")}
135135
>
136-
<div class="flex items-center gap-2">
137-
<Icon name="magnifying-glass" size="normal" class="icon-base" />
138-
<span class="flex-1 min-w-0 text-14-regular text-text-weak truncate h-3.5 flex items-center overflow-visible">
136+
<div class="flex min-w-0 flex-1 items-center gap-2 overflow-visible">
137+
<Icon name="magnifying-glass" size="normal" class="icon-base shrink-0" />
138+
<span class="flex-1 min-w-0 text-14-regular text-text-weak truncate h-4.5 flex items-center">
139139
Search {name()}
140140
</span>
141141
</div>
142142

143-
<Show when={hotkey()}>{(keybind) => <Keybind>{keybind()}</Keybind>}</Show>
143+
<Show when={hotkey()}>{(keybind) => <Keybind class="shrink-0">{keybind()}</Keybind>}</Show>
144144
</button>
145145
</Portal>
146146
)}

0 commit comments

Comments
 (0)