Skip to content

Commit

Permalink
fix(core): modal height issue (#8710)
Browse files Browse the repository at this point in the history
  • Loading branch information
pengx17 committed Nov 6, 2024
1 parent fcd4f8c commit 584d095
Showing 1 changed file with 14 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,21 @@ export const modalContentContainer = style({
alignItems: 'center',
justifyContent: 'center',
borderRadius: 12,
selectors: {
[`${modalContentWrapper}:is([data-mode="max"], [data-mode="fit"], [data-mobile]) &`]:
{
height: '60%',
width: 'calc(100% - 32px)',
paddingRight: 0,
paddingBottom: 32,
alignSelf: 'flex-end',
'@media': {
// for small screen
'screen and (width <= 640px)': {
selectors: {
[`${modalContentWrapper}:is([data-mode="max"], [data-mode="fit"]) &`]: {
height: '60%',
width: 'calc(100% - 32px)',
paddingRight: 0,
paddingBottom: 32,
alignSelf: 'flex-end',
},
},
},
},
selectors: {
[`${modalContentWrapper}[data-mode="max"] &`]: {
width: 'calc(100% - 64px)',
height: 'calc(100% - 64px)',
Expand Down

0 comments on commit 584d095

Please sign in to comment.