Skip to content

Commit 355d5eb

Browse files
viniciuscigmaLuizgomess
authored andcommitted
🐛 fix(dialog): remove hardcoded max-width for dialog variants (#503)
1 parent 2275e42 commit 355d5eb

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

apps/web/public/installation/manual/dialog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ export class ZardDialogComponent<T, U> extends BasePortalOutlet {
213213
import { cva, type VariantProps } from 'class-variance-authority';
214214
215215
export const dialogVariants = cva(
216-
'fixed left-[50%] top-[50%] z-50 grid w-full translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg rounded-lg max-w-[calc(100%-2rem)] sm:max-w-[425px]',
216+
'fixed left-[50%] top-[50%] z-50 grid w-full translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg rounded-lg max-w-[calc(100%-2rem)]',
217217
);
218218
export type ZardDialogVariants = VariantProps<typeof dialogVariants>;
219219
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { cva, type VariantProps } from 'class-variance-authority';
22

33
export const dialogVariants = cva(
4-
'fixed left-[50%] top-[50%] z-50 grid w-full translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg rounded-lg max-w-[calc(100%-2rem)] sm:max-w-[425px]',
4+
'fixed left-[50%] top-[50%] z-50 grid w-full translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg rounded-lg max-w-[calc(100%-2rem)]',
55
);
66
export type ZardDialogVariants = VariantProps<typeof dialogVariants>;

0 commit comments

Comments
 (0)