Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
💄 Restyle sheets as floating rounded popover panels (#2919)
Luke Vella2d44cada3b1e
diff --git a/apps/web/src/features/poll/components/comments-sheet.tsx b/apps/web/src/features/poll/components/comments-sheet.tsxindex e2bc57207..52741bf93 100644--- a/apps/web/src/features/poll/components/comments-sheet.tsx+++ b/apps/web/src/features/poll/components/comments-sheet.tsx@@ -228,7 +228,7 @@ function CommentsSheetInner({ className }: { className?: string }) {{count > 0 ? <Badge>{count}</Badge> : null}</Button><Sheet {...dialog.dialogProps}>- <SheetContent className="flex w-full flex-col sm:max-w-md">+ <SheetContent className="flex flex-col sm:max-w-md"><SheetHeader><div className="flex items-center gap-2"><SheetTitle>diff --git a/packages/ui/src/sheet.tsx b/packages/ui/src/sheet.tsxindex f8003a58d..b52fc5bed 100644--- a/packages/ui/src/sheet.tsx+++ b/packages/ui/src/sheet.tsx@@ -37,16 +37,16 @@ function SheetOverlay({ className, ...props }: SheetPrimitive.Backdrop.Props) {}const sheetVariants = cva(- "fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-closed:animate-out data-open:animate-in data-closed:duration-200 data-open:duration-200",+ "fixed z-50 gap-4 rounded-xl bg-popover p-6 text-popover-foreground shadow-lg ring-1 ring-foreground/10 transition ease-in-out data-closed:animate-out data-open:animate-in data-closed:duration-200 data-open:duration-200",{variants: {side: {- top: "data-closed:slide-out-to-top data-open:slide-in-from-top inset-x-0 top-0 border-b",+ top: "data-closed:slide-out-to-top data-open:slide-in-from-top inset-x-2 top-2",bottom:- "data-closed:slide-out-to-bottom data-open:slide-in-from-bottom inset-x-0 bottom-0 border-t",- left: "data-closed:slide-out-to-left data-open:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",+ "data-closed:slide-out-to-bottom data-open:slide-in-from-bottom inset-x-2 bottom-2",+ left: "data-closed:slide-out-to-left data-open:slide-in-from-left inset-y-2 left-2 w-[calc(100%-1rem)] sm:max-w-sm",right:- "data-closed:slide-out-to-right data-open:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",+ "data-closed:slide-out-to-right data-open:slide-in-from-right inset-y-2 right-2 w-[calc(100%-1rem)] sm:max-w-sm",},},defaultVariants: {