The open source coding agent.
TypeScript
chore: app polish (#13976)
Adam277c68d8e5f9
diff --git a/packages/app/src/components/prompt-input.tsx b/packages/app/src/components/prompt-input.tsxindex 7813e01cd6a..54b9286eba9 100644--- a/packages/app/src/components/prompt-input.tsx+++ b/packages/app/src/components/prompt-input.tsx@@ -1334,7 +1334,7 @@ export const PromptInput: Component<PromptInputProps> = (props) => {<div class="shrink-0"><divdata-component="prompt-mode-toggle"- class="relative h-8 w-[68px] rounded-[4px] bg-surface-inset-base shadow-[var(--shadow-xs-border-base)] p-0 flex items-center gap-1 overflow-visible"+ class="relative h-6 w-[68px] rounded-[4px] bg-surface-inset-base border border-[0.5px] border-border-weak-base p-0 flex items-center gap-1 overflow-visible"><divclass="absolute inset-y-0 left-0 w-[calc((100%-4px)/2)] rounded-[4px] bg-surface-raised-stronger-non-alpha shadow-[var(--shadow-xs-border)] transition-transform duration-200 ease-out will-change-transform"@@ -1344,33 +1344,43 @@ export const PromptInput: Component<PromptInputProps> = (props) => {/><buttontype="button"- class="relative z-10 flex-1 h-full flex items-center justify-center rounded-[4px]"+ class="relative z-10 flex-1 h-full p-0.5 flex items-center justify-center"aria-pressed={store.mode === "shell"}onClick={() => setMode("shell")}>- <Icon- name="console"- size="normal"- classList={{- "text-icon-strong-base": store.mode === "shell",- "text-icon-weak": store.mode !== "shell",- }}- />+ <div+ class="w-full h-full flex items-center justify-center rounded-[2px] transition-colors hover:bg-surface-inset-base"+ classList={{ "hover:bg-transparent": store.mode === "shell" }}+ >+ <Icon+ name="console"+ class="size-[18px]"+ classList={{+ "text-icon-strong-base": store.mode === "shell",+ "text-icon-weak": store.mode !== "shell",+ }}+ />+ </div></button><buttontype="button"- class="relative z-10 flex-1 h-full flex items-center justify-center rounded-[4px]"+ class="relative z-10 flex-1 h-full p-0.5 flex items-center justify-center"aria-pressed={store.mode === "normal"}onClick={() => setMode("normal")}>- <Icon- name="prompt"- size="normal"- classList={{- "text-icon-interactive-base": store.mode === "normal",- "text-icon-weak": store.mode !== "normal",- }}- />+ <div+ class="w-full h-full flex items-center justify-center rounded-[2px] transition-colors hover:bg-surface-inset-base"+ classList={{ "hover:bg-transparent": store.mode === "normal" }}+ >+ <Icon+ name="prompt"+ class="size-[18px]"+ classList={{+ "text-icon-interactive-base": store.mode === "normal",+ "text-icon-weak": store.mode !== "normal",+ }}+ />+ </div></button></div></div>diff --git a/packages/app/src/components/titlebar.tsx b/packages/app/src/components/titlebar.tsxindex e10fbe3b377..262b3e0735e 100644--- a/packages/app/src/components/titlebar.tsx+++ b/packages/app/src/components/titlebar.tsx@@ -278,7 +278,7 @@ export function Titlebar() {}}onMouseDown={drag}>- <div id="opencode-titlebar-right" class="flex items-center gap-3 shrink-0 justify-end" />+ <div id="opencode-titlebar-right" class="flex items-center gap-1 shrink-0 justify-end" /><Show when={windows()}><div class="w-6 shrink-0" /><div data-tauri-decorum-tb class="flex flex-row" />