Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
monorepo
/
venus
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 081d08a7
authored
May 30, 2025
by
Netfan
Committed by
GitHub
May 30, 2025
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: alert width fixed in small screen (#6312)
1 parent
96a10ca8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
packages/@core/ui-kit/popup-ui/src/alert/alert.vue
packages/@core/ui-kit/shadcn-ui/src/ui/alert-dialog/AlertDialogContent.vue
packages/@core/ui-kit/popup-ui/src/alert/alert.vue
View file @
081d08a
...
...
@@ -34,7 +34,6 @@ const props = withDefaults(defineProps<AlertProps>(), {
bordered
:
true
,
buttonAlign
:
'end'
,
centered
:
true
,
containerClass
:
'w-[520px]'
,
});
const
emits
=
defineEmits
([
'closed'
,
'confirm'
,
'opened'
]);
const
open
=
defineModel
<
boolean
>
(
'open'
,
{
default
:
false
});
...
...
@@ -148,7 +147,7 @@ async function handleOpenChange(val: boolean) {
:class=
"
cn(
containerClass,
'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%
]',
'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)
]',
{
'border-border border': bordered,
'shadow-3xl': !bordered,
...
...
packages/@core/ui-kit/shadcn-ui/src/ui/alert-dialog/AlertDialogContent.vue
View file @
081d08a
...
...
@@ -80,7 +80,7 @@ defineExpose({
v-bind="forwarded"
:class="
cn(
'z-popup bg-background
w-full
p-6 shadow-lg outline-none sm:rounded-xl',
'z-popup bg-background p-6 shadow-lg outline-none sm:rounded-xl',
'data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95',
'data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95',
{
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment