Skip to content

Commit 184732f

Browse files
authored
fix(app): titlebar cleanup (anomalyco#17206)
1 parent b66222b commit 184732f

27 files changed

Lines changed: 910 additions & 382 deletions

packages/app/src/components/prompt-input.tsx

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ import { ProviderIcon } from "@opencode-ai/ui/provider-icon"
2626
import { Tooltip, TooltipKeybind } from "@opencode-ai/ui/tooltip"
2727
import { IconButton } from "@opencode-ai/ui/icon-button"
2828
import { Select } from "@opencode-ai/ui/select"
29-
import { RadioGroup } from "@opencode-ai/ui/radio-group"
3029
import { useDialog } from "@opencode-ai/ui/context/dialog"
3130
import { ModelSelectorPopover } from "@/components/dialog-select-model"
3231
import { DialogSelectModelUnpaid } from "@/components/dialog-select-model-unpaid"
@@ -1488,36 +1487,6 @@ export const PromptInput: Component<PromptInputProps> = (props) => {
14881487
</TooltipKeybind>
14891488
</div>
14901489
</div>
1491-
<div class="shrink-0">
1492-
<RadioGroup
1493-
options={["shell", "normal"] as const}
1494-
current={store.mode}
1495-
value={(mode) => mode}
1496-
label={(mode) => (
1497-
<TooltipKeybind
1498-
placement="top"
1499-
gutter={4}
1500-
openDelay={2000}
1501-
title={language.t(mode === "shell" ? "prompt.mode.shell" : "prompt.mode.normal")}
1502-
keybind={command.keybind(mode === "shell" ? "prompt.mode.shell" : "prompt.mode.normal")}
1503-
class="size-full flex items-center justify-center"
1504-
>
1505-
<Icon
1506-
name={mode === "shell" ? "console" : "prompt"}
1507-
class="size-[18px]"
1508-
classList={{
1509-
"text-icon-strong-base": store.mode === mode,
1510-
"text-icon-weak": store.mode !== mode,
1511-
}}
1512-
/>
1513-
</TooltipKeybind>
1514-
)}
1515-
onSelect={(mode) => mode && setMode(mode)}
1516-
fill
1517-
pad="none"
1518-
class="w-[68px]"
1519-
/>
1520-
</div>
15211490
</div>
15221491
</DockTray>
15231492
</Show>

packages/app/src/components/server/server-row.tsx

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,22 +65,26 @@ export function ServerRow(props: ServerRowProps) {
6565

6666
return (
6767
<Tooltip
68-
class="flex-1"
68+
class="flex-1 min-w-0"
6969
value={tooltipValue()}
70+
contentStyle={{ "max-width": "none", "white-space": "nowrap" }}
7071
placement="top-start"
7172
inactive={!truncated() && !props.conn.displayName}
7273
>
7374
<div class={props.class} classList={{ "opacity-50": props.dimmed }}>
74-
<div class="flex flex-col items-start">
75-
<div class="flex flex-row items-center gap-2">
76-
<span ref={nameRef} class={props.nameClass ?? "truncate"}>
75+
<div class="flex flex-col items-start min-w-0 w-full">
76+
<div class="flex flex-row items-center gap-2 min-w-0 w-full">
77+
<span ref={nameRef} class={`${props.nameClass ?? "truncate"} min-w-0`}>
7778
{name()}
7879
</span>
7980
<Show
8081
when={badge()}
8182
fallback={
8283
<Show when={props.status?.version}>
83-
<span ref={versionRef} class={props.versionClass ?? "text-text-weak text-14-regular truncate"}>
84+
<span
85+
ref={versionRef}
86+
class={`${props.versionClass ?? "text-text-weak text-14-regular truncate"} min-w-0`}
87+
>
8488
v{props.status?.version}
8589
</span>
8690
</Show>

0 commit comments

Comments
 (0)