From dca2540ca786d818da4387ddff19eba865630a37 Mon Sep 17 00:00:00 2001 From: Adam <2363879+adamdotdevin@users.noreply.github.com> Date: Thu, 15 Jan 2026 15:48:21 -0600 Subject: chore: cleanup --- packages/ui/src/components/dialog.css | 10 ++++++++-- packages/ui/src/components/dialog.tsx | 3 ++- 2 files changed, 10 insertions(+), 3 deletions(-) (limited to 'packages/ui/src') 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 ( -