mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-18 14:56:59 +08:00
fix(mobile): adjust peek view style for mobile (#8003)

This commit is contained in:
@@ -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,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user