From a8836c5615f620321cc7aa2670767e0c9586d27b Mon Sep 17 00:00:00 2001 From: Adam <2363879+adamdotdevin@users.noreply.github.com> Date: Thu, 13 Nov 2025 14:47:25 -0600 Subject: [PATCH] wip(desktop): layout improvements --- packages/desktop/index.html | 14 +- .../desktop/src/components/prompt-input.tsx | 12 +- .../desktop/src/components/session-review.tsx | 104 ++++ .../components/sticky-accordion-header.tsx | 17 + packages/desktop/src/context/local.tsx | 11 +- packages/desktop/src/pages/session.tsx | 252 +++----- packages/ui/script/colors.txt | 35 +- packages/ui/script/tailwind.ts | 2 +- packages/ui/src/components/accordion.css | 29 +- packages/ui/src/components/accordion.tsx | 11 +- packages/ui/src/components/button.css | 2 +- packages/ui/src/components/card.css | 2 +- packages/ui/src/components/checkbox.css | 2 +- packages/ui/src/components/collapsible.css | 2 +- packages/ui/src/components/dialog.css | 2 +- packages/ui/src/components/icon-button.css | 2 +- packages/ui/src/components/icon.tsx | 1 + packages/ui/src/components/list.css | 2 +- packages/ui/src/components/select-dialog.css | 4 +- packages/ui/src/components/select.css | 4 +- packages/ui/src/components/tabs.css | 48 +- packages/ui/src/components/tabs.tsx | 31 +- packages/ui/src/components/tooltip.css | 2 +- packages/ui/src/styles/colors.css | 48 ++ packages/ui/src/styles/tailwind/colors.css | 16 +- packages/ui/src/styles/theme.css | 541 ++++++++++++++++-- packages/ui/src/styles/utilities.css | 2 +- 27 files changed, 881 insertions(+), 317 deletions(-) create mode 100644 packages/desktop/src/components/session-review.tsx create mode 100644 packages/desktop/src/components/sticky-accordion-header.tsx diff --git a/packages/desktop/index.html b/packages/desktop/index.html index e88b49ac..961ae814 100644 --- a/packages/desktop/index.html +++ b/packages/desktop/index.html @@ -8,14 +8,12 @@ OpenCode - - - - - - - - +
diff --git a/packages/desktop/src/components/prompt-input.tsx b/packages/desktop/src/components/prompt-input.tsx index b2022cf3..2ae5f87f 100644 --- a/packages/desktop/src/components/prompt-input.tsx +++ b/packages/desktop/src/components/prompt-input.tsx @@ -347,7 +347,7 @@ export const PromptInput: Component = (props) => {
0} fallback={
No matching files
}> @@ -382,7 +382,7 @@ export const PromptInput: Component = (props) => { onSubmit={handleSubmit} classList={{ "bg-surface-raised-stronger-non-alpha border border-border-strong-base": true, - "rounded-2xl overflow-clip focus-within:border-transparent focus-within:shadow-xs-border-select": true, + "rounded-md overflow-clip focus-within:border-transparent focus-within:shadow-xs-border-select": true, [props.class ?? ""]: !!props.class, }} > @@ -396,17 +396,17 @@ export const PromptInput: Component = (props) => { onInput={handleInput} onKeyDown={handleKeyDown} classList={{ - "w-full p-3 text-14-regular text-text-strong focus:outline-none whitespace-pre-wrap": true, + "w-full px-5 py-3 text-14-regular text-text-strong focus:outline-none whitespace-pre-wrap": true, "[&>[data-type=file]]:text-icon-info-active": true, }} /> -
+
Plan and build anything
-
+