Skip to content

Commit 081d08a

Browse files
authored
fix: alert width fixed in small screen (#6312)
1 parent 96a10ca commit 081d08a

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

packages/@core/ui-kit/popup-ui/src/alert/alert.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ const props = withDefaults(defineProps<AlertProps>(), {
3434
bordered: true,
3535
buttonAlign: 'end',
3636
centered: true,
37-
containerClass: 'w-[520px]',
3837
});
3938
const emits = defineEmits(['closed', 'confirm', 'opened']);
4039
const open = defineModel<boolean>('open', { default: false });
@@ -148,7 +147,7 @@ async function handleOpenChange(val: boolean) {
148147
:class="
149148
cn(
150149
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)]',
152151
{
153152
'border-border border': bordered,
154153
'shadow-3xl': !bordered,

packages/@core/ui-kit/shadcn-ui/src/ui/alert-dialog/AlertDialogContent.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ defineExpose({
8080
v-bind="forwarded"
8181
:class="
8282
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',
8484
'data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95',
8585
'data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95',
8686
{

0 commit comments

Comments
 (0)