File tree Expand file tree Collapse file tree 3 files changed +13
-8
lines changed
apps/website/src/routes/docs/styled/modal
packages/kit-styled/src/components/modal Expand file tree Collapse file tree 3 files changed +13
-8
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @qwik-ui/styled ' : patch
3
+ ---
4
+
5
+ fix: styled modal aligning to either left/top when position set either right/bottom'
Original file line number Diff line number Diff line change @@ -45,12 +45,12 @@ export const panelVariants = cva(
45
45
position: {
46
46
center:
47
47
' max-w-lg rounded-base shadow-lg data-[closed]:fade-out data-[open]:fade-in data-[closed]:zoom-out-95 data-[open]:zoom-in-95 data-[open]:slide-in-from-bottom-2 backdrop:data-[closing]:fade-out backdrop:data-[open]:fade-in' ,
48
- top: ' inset-x-0 top-0 mt-0 rounded-b-base border-b data-[closing]:slide-out-to-top data-[open]:slide-in-from-top' ,
48
+ top: ' inset-x-0 top-0 mb-auto mt-0 rounded-b-base border-b data-[closing]:slide-out-to-top data-[open]:slide-in-from-top' ,
49
49
bottom:
50
- ' inset-x-0 bottom-0 mb-0 rounded-t-base border-t data-[closing]:slide-out-to-bottom data-[open]:slide-in-from-bottom' ,
51
- left: ' inset-y-0 left-0 ml-0 h-full max-w-sm rounded-r-base border-r data-[closing]:slide-out-to-left data-[open]:slide-in-from-left' ,
50
+ ' inset-x-0 bottom-0 mb-0 mt-auto rounded-t-base border-t data-[closing]:slide-out-to-bottom data-[open]:slide-in-from-bottom' ,
51
+ left: ' inset-y-0 left-0 ml-0 mr-auto h-full max-w-sm rounded-r-base border-r data-[closing]:slide-out-to-left data-[open]:slide-in-from-left' ,
52
52
right:
53
- ' inset-y-0 right-0 mr-0 h-full max-w-sm rounded-l-base border-l data-[closing]:slide-out-to-right data-[open]:slide-in-from-right' ,
53
+ ' inset-y-0 right-0 ml-auto mr-0 h-full max-w-sm rounded-l-base border-l data-[closing]:slide-out-to-right data-[open]:slide-in-from-right' ,
54
54
},
55
55
},
56
56
defaultVariants: {
Original file line number Diff line number Diff line change @@ -20,12 +20,12 @@ export const panelVariants = cva(
20
20
position : {
21
21
center :
22
22
'max-w-lg rounded-base shadow-lg data-[closed]:fade-out data-[open]:fade-in data-[closed]:zoom-out-95 data-[open]:zoom-in-95 data-[open]:slide-in-from-bottom-2 backdrop:data-[closing]:fade-out backdrop:data-[open]:fade-in' ,
23
- top : 'inset-x-0 top-0 mt-0 rounded-b-base border-b data-[closing]:slide-out-to-top data-[open]:slide-in-from-top' ,
23
+ top : 'inset-x-0 top-0 mb-auto mt-0 rounded-b-base border-b data-[closing]:slide-out-to-top data-[open]:slide-in-from-top' ,
24
24
bottom :
25
- 'inset-x-0 bottom-0 mb-0 rounded-t-base border-t data-[closing]:slide-out-to-bottom data-[open]:slide-in-from-bottom' ,
26
- left : 'inset-y-0 left-0 ml-0 h-full max-w-sm rounded-r-base border-r data-[closing]:slide-out-to-left data-[open]:slide-in-from-left' ,
25
+ 'inset-x-0 bottom-0 mb-0 mt-auto rounded-t-base border-t data-[closing]:slide-out-to-bottom data-[open]:slide-in-from-bottom' ,
26
+ left : 'inset-y-0 left-0 ml-0 mr-auto h-full max-w-sm rounded-r-base border-r data-[closing]:slide-out-to-left data-[open]:slide-in-from-left' ,
27
27
right :
28
- 'inset-y-0 right-0 mr-0 h-full max-w-sm rounded-l-base border-l data-[closing]:slide-out-to-right data-[open]:slide-in-from-right' ,
28
+ 'inset-y-0 right-0 ml-auto mr-0 h-full max-w-sm rounded-l-base border-l data-[closing]:slide-out-to-right data-[open]:slide-in-from-right' ,
29
29
} ,
30
30
} ,
31
31
defaultVariants : {
You can’t perform that action at this time.
0 commit comments