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

This commit is contained in:
@@ -31,6 +31,19 @@ export const modalContentContainer = style({
|
|||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
justifyContent: 'center',
|
justifyContent: 'center',
|
||||||
borderRadius: 12,
|
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: {
|
selectors: {
|
||||||
'[data-padding="true"] &': {
|
'[data-padding="true"] &': {
|
||||||
width: 'calc(100% - 64px)',
|
width: 'calc(100% - 64px)',
|
||||||
@@ -79,4 +92,9 @@ export const modalControls = style({
|
|||||||
minWidth: '48px',
|
minWidth: '48px',
|
||||||
padding: '8px 0 0 16px',
|
padding: '8px 0 0 16px',
|
||||||
pointerEvents: 'auto',
|
pointerEvents: 'auto',
|
||||||
|
'@media': {
|
||||||
|
'screen and (width <= 640px)': {
|
||||||
|
top: -48,
|
||||||
|
},
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -5,6 +5,11 @@ export const root = style({
|
|||||||
flexDirection: 'column',
|
flexDirection: 'column',
|
||||||
height: '100%',
|
height: '100%',
|
||||||
gap: 8,
|
gap: 8,
|
||||||
|
'@media': {
|
||||||
|
'screen and (width <= 640px)': {
|
||||||
|
flexDirection: 'row',
|
||||||
|
},
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
export const button = style({
|
export const button = style({
|
||||||
|
|||||||
@@ -73,6 +73,10 @@ globalStyle('.doc-title-container', {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
globalStyle('[data-peek-view-wrapper] .doc-title-container', {
|
||||||
|
fontSize: cssVar('fontH6'),
|
||||||
|
});
|
||||||
|
|
||||||
globalStyle('.affine-page-root-block-container', {
|
globalStyle('.affine-page-root-block-container', {
|
||||||
'@container': {
|
'@container': {
|
||||||
[`viewport (width <= 640px)`]: {
|
[`viewport (width <= 640px)`]: {
|
||||||
|
|||||||
Reference in New Issue
Block a user