diff options
| author | Adam <[email protected]> | 2026-01-15 15:48:21 -0600 |
|---|---|---|
| committer | Adam <[email protected]> | 2026-01-19 07:35:52 -0600 |
| commit | dca2540ca786d818da4387ddff19eba865630a37 (patch) | |
| tree | d140e17db3d69188bb059c88b8c9e2ca059cdf9a /packages/ui/src/components | |
| parent | fcfe6d3d261edaa139d35cf463c05d7124045142 (diff) | |
| download | opencode-dca2540ca786d818da4387ddff19eba865630a37.tar.gz opencode-dca2540ca786d818da4387ddff19eba865630a37.zip | |
chore: cleanup
Diffstat (limited to 'packages/ui/src/components')
| -rw-r--r-- | packages/ui/src/components/dialog.css | 10 | ||||
| -rw-r--r-- | packages/ui/src/components/dialog.tsx | 3 |
2 files changed, 10 insertions, 3 deletions
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" |
