File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
shadcn-ui/src/ui/alert-dialog Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,6 @@ const props = withDefaults(defineProps<AlertProps>(), {
34
34
bordered: true ,
35
35
buttonAlign: ' end' ,
36
36
centered: true ,
37
- containerClass: ' w-[520px]' ,
38
37
});
39
38
const emits = defineEmits ([' closed' , ' confirm' , ' opened' ]);
40
39
const open = defineModel <boolean >(' open' , { default: false });
@@ -148,7 +147,7 @@ async function handleOpenChange(val: boolean) {
148
147
:class ="
149
148
cn(
150
149
containerClass,
151
- 'left-0 right-0 mx-auto flex max-h-[80%] flex-col p-0 duration-300 sm:rounded-[var(--radius)] md: w-[520px] md :max-w-[80%]',
150
+ 'left-0 right-0 mx-auto flex max-h-[80%] flex-col p-0 duration-300 sm:w-[520px] sm :max-w-[80%] sm:rounded-[var(--radius) ]',
152
151
{
153
152
'border-border border': bordered,
154
153
'shadow-3xl': !bordered,
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ defineExpose({
80
80
v-bind =" forwarded"
81
81
:class ="
82
82
cn(
83
- 'z-popup bg-background w-full p-6 shadow-lg outline-none sm:rounded-xl',
83
+ 'z-popup bg-background p-6 shadow-lg outline-none sm:rounded-xl',
84
84
'data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95',
85
85
'data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95',
86
86
{
You can’t perform that action at this time.
0 commit comments