fix(mobile): adjust peek view style for mobile (#8003)

![image.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/T2klNLEk0wxLh4NRDzhk/c3a04128-0309-4df6-ab6d-0a5129483c73.png)
This commit is contained in:
pengx17
2024-08-29 16:45:22 +00:00
parent 7ae141bd9e
commit adf314d594
3 changed files with 27 additions and 0 deletions

View File

@@ -31,6 +31,19 @@ export const modalContentContainer = style({
alignItems: 'center',
justifyContent: 'center',
borderRadius: 12,
'@media': {
'screen and (width <= 640px)': {
selectors: {
'[data-padding="true"] &': {
height: '60%',
width: 'calc(100% - 32px)',
paddingRight: 0,
paddingBottom: 32,
alignSelf: 'flex-end',
},
},
},
},
selectors: {
'[data-padding="true"] &': {
width: 'calc(100% - 64px)',
@@ -79,4 +92,9 @@ export const modalControls = style({
minWidth: '48px',
padding: '8px 0 0 16px',
pointerEvents: 'auto',
'@media': {
'screen and (width <= 640px)': {
top: -48,
},
},
});

View File

@@ -5,6 +5,11 @@ export const root = style({
flexDirection: 'column',
height: '100%',
gap: 8,
'@media': {
'screen and (width <= 640px)': {
flexDirection: 'row',
},
},
});
export const button = style({