summaryrefslogtreecommitdiffhomepage
path: root/packages
diff options
context:
space:
mode:
authorAdam <[email protected]>2026-01-15 15:48:21 -0600
committerAdam <[email protected]>2026-01-19 07:35:52 -0600
commitdca2540ca786d818da4387ddff19eba865630a37 (patch)
treed140e17db3d69188bb059c88b8c9e2ca059cdf9a /packages
parentfcfe6d3d261edaa139d35cf463c05d7124045142 (diff)
downloadopencode-dca2540ca786d818da4387ddff19eba865630a37.tar.gz
opencode-dca2540ca786d818da4387ddff19eba865630a37.zip
chore: cleanup
Diffstat (limited to 'packages')
-rw-r--r--packages/app/src/pages/layout.tsx4
-rw-r--r--packages/ui/src/components/dialog.css10
-rw-r--r--packages/ui/src/components/dialog.tsx3
3 files changed, 12 insertions, 5 deletions
diff --git a/packages/app/src/pages/layout.tsx b/packages/app/src/pages/layout.tsx
index bf44efa1c..3b8c76e04 100644
--- a/packages/app/src/pages/layout.tsx
+++ b/packages/app/src/pages/layout.tsx
@@ -1020,7 +1020,7 @@ export default function Layout(props: ParentProps) {
}
return (
- <Dialog title="Delete workspace">
+ <Dialog title="Delete workspace" fit>
<div class="flex flex-col gap-4 px-2.5 pb-3">
<div class="flex flex-col gap-1">
<span class="text-14-regular text-text-strong">Delete workspace "{name()}"?</span>
@@ -1097,7 +1097,7 @@ export default function Layout(props: ParentProps) {
}
return (
- <Dialog title="Reset workspace">
+ <Dialog title="Reset workspace" fit>
<div class="flex flex-col gap-4 px-2.5 pb-3">
<div class="flex flex-col gap-1">
<span class="text-14-regular text-text-strong">Reset workspace "{name()}"?</span>
diff --git a/packages/ui/src/components/dialog.css b/packages/ui/src/components/dialog.css
index 5c7cdc233..177dc0a79 100644
--- a/packages/ui/src/components/dialog.css
+++ b/packages/ui/src/components/dialog.css
@@ -118,9 +118,15 @@
outline: none;
}
}
+ }
+
+ &[data-fit] {
+ [data-slot="dialog-container"] {
+ height: auto;
- &:focus-visible {
- outline: none;
+ [data-slot="dialog-content"] {
+ min-height: 0;
+ }
}
}
}
diff --git a/packages/ui/src/components/dialog.tsx b/packages/ui/src/components/dialog.tsx
index 40a6ac83d..797fbcbfc 100644
--- a/packages/ui/src/components/dialog.tsx
+++ b/packages/ui/src/components/dialog.tsx
@@ -8,11 +8,12 @@ export interface DialogProps extends ParentProps {
action?: JSXElement
class?: ComponentProps<"div">["class"]
classList?: ComponentProps<"div">["classList"]
+ fit?: boolean
}
export function Dialog(props: DialogProps) {
return (
- <div data-component="dialog">
+ <div data-component="dialog" data-fit={props.fit ? true : undefined}>
<div data-slot="dialog-container">
<Kobalte.Content
data-slot="dialog-content"