fix: 弹窗组件拖拽后全屏位置异常

pull/340/MERGE
dullathanol 2026-04-06 22:26:27 +08:00
parent 92f8916225
commit ad7ed50b52
1 changed files with 2 additions and 1 deletions

View File

@ -246,7 +246,8 @@ function handleClosed() {
{
'border border-border': bordered,
'shadow-3xl': !bordered,
'top-0 left-0 size-full max-h-full translate-0!': shouldFullscreen,
'top-0 left-0 size-full max-h-full transform-[translate(0,0)]!':
shouldFullscreen,
'top-1/2': centered && !shouldFullscreen,
'duration-300': !dragging,
hidden: isClosed,