summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAdam <[email protected]>2025-12-09 15:32:33 -0600
committerAdam <[email protected]>2025-12-09 15:32:36 -0600
commit41d78c1ecc8b9fa5f5c8d4862fe5c08e699b481a (patch)
tree3cb30ac90f24d6101a80cf373bb4c9f59738e603
parent16c4b02b69e3d887c9e41c9b7b9f41fc4d45c49e (diff)
downloadopencode-41d78c1ecc8b9fa5f5c8d4862fe5c08e699b481a.tar.gz
opencode-41d78c1ecc8b9fa5f5c8d4862fe5c08e699b481a.zip
wip(desktop): progress
-rw-r--r--packages/desktop/src/pages/home.tsx2
-rw-r--r--packages/desktop/src/pages/layout.tsx14
-rw-r--r--packages/ui/src/components/button.css2
3 files changed, 9 insertions, 9 deletions
diff --git a/packages/desktop/src/pages/home.tsx b/packages/desktop/src/pages/home.tsx
index a4491f813..4aac241e1 100644
--- a/packages/desktop/src/pages/home.tsx
+++ b/packages/desktop/src/pages/home.tsx
@@ -51,7 +51,7 @@ export default function Home() {
<ul class="flex flex-col gap-2">
<For
each={sync.data.projects
- .sort((a, b) => (b.time.updated ?? b.time.created) - (a.time.updated ?? a.time.created))
+ .toSorted((a, b) => (b.time.updated ?? b.time.created) - (a.time.updated ?? a.time.created))
.slice(0, 5)}
>
{(project) => (
diff --git a/packages/desktop/src/pages/layout.tsx b/packages/desktop/src/pages/layout.tsx
index c083fbdfe..3ff3abb0e 100644
--- a/packages/desktop/src/pages/layout.tsx
+++ b/packages/desktop/src/pages/layout.tsx
@@ -149,7 +149,7 @@ export default function Layout(props: ParentProps) {
as={"div"}
variant="ghost"
data-active
- class="flex items-center justify-between gap-3 w-full px-1 self-stretch h-8 border-none"
+ class="flex items-center justify-between gap-3 w-full px-1 self-stretch h-8 border-none rounded-lg"
>
<div class="flex items-center gap-3 p-0 text-left min-w-0 grow">
<div class="size-6 shrink-0">
@@ -168,7 +168,7 @@ export default function Layout(props: ParentProps) {
<Button
variant="ghost"
size="large"
- class="flex items-center justify-center p-0 aspect-square border-none"
+ class="flex items-center justify-center p-0 aspect-square border-none rounded-lg"
data-selected={props.project.worktree === currentDirectory()}
onClick={() => navigateToProject(props.project.worktree)}
>
@@ -200,7 +200,7 @@ export default function Layout(props: ParentProps) {
<Button
as={"div"}
variant="ghost"
- class="group/session flex items-center justify-between gap-3 w-full px-1 self-stretch h-auto border-none"
+ class="group/session flex items-center justify-between gap-3 w-full px-1 self-stretch h-auto border-none rounded-lg"
>
<Collapsible.Trigger class="group/trigger flex items-center gap-3 p-0 text-left min-w-0 grow border-none">
<div class="size-6 shrink-0">
@@ -419,7 +419,7 @@ export default function Layout(props: ParentProps) {
<Button
variant="ghost"
size="large"
- class="group/sidebar-toggle shrink-0 w-full text-left justify-start"
+ class="group/sidebar-toggle shrink-0 w-full text-left justify-start rounded-lg"
onClick={layout.sidebar.toggle}
>
<div class="relative -ml-px flex items-center justify-center size-4 [&>*]:absolute [&>*]:inset-0">
@@ -468,7 +468,7 @@ export default function Layout(props: ParentProps) {
<Show when={platform.openDirectoryPickerDialog}>
<Tooltip placement="right" value="Open project" inactive={layout.sidebar.opened()}>
<Button
- class="flex w-full text-left justify-start text-12-medium text-text-base stroke-[1.5px]"
+ class="flex w-full text-left justify-start text-12-medium text-text-base stroke-[1.5px] rounded-lg"
variant="ghost"
size="large"
icon="folder-add-left"
@@ -481,7 +481,7 @@ export default function Layout(props: ParentProps) {
<Tooltip placement="right" value="Settings" inactive={layout.sidebar.opened()}>
<Button
disabled
- class="flex w-full text-left justify-start text-12-medium text-text-base stroke-[1.5px]"
+ class="flex w-full text-left justify-start text-12-medium text-text-base stroke-[1.5px] rounded-lg"
variant="ghost"
size="large"
icon="settings-gear"
@@ -494,7 +494,7 @@ export default function Layout(props: ParentProps) {
as={"a"}
href="https://opencode.ai/desktop-feedback"
target="_blank"
- class="flex w-full text-left justify-start text-12-medium text-text-base stroke-[1.5px]"
+ class="flex w-full text-left justify-start text-12-medium text-text-base stroke-[1.5px] rounded-lg"
variant="ghost"
size="large"
icon="bubble-5"
diff --git a/packages/ui/src/components/button.css b/packages/ui/src/components/button.css
index 2b42a6f33..192c7b60c 100644
--- a/packages/ui/src/components/button.css
+++ b/packages/ui/src/components/button.css
@@ -4,7 +4,7 @@
justify-content: center;
border-style: solid;
border-width: 1px;
- border-radius: var(--radius-lg);
+ border-radius: var(--radius-md);
text-decoration: none;
user-select: none;
cursor: default;