Skip to content

Commit adf314d

Browse files
committed
1 parent 7ae141b commit adf314d

File tree

3 files changed

+27
-0
lines changed

3 files changed

+27
-0
lines changed

packages/frontend/core/src/modules/peek-view/view/modal-container.css.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,19 @@ export const modalContentContainer = style({
3131
alignItems: 'center',
3232
justifyContent: 'center',
3333
borderRadius: 12,
34+
'@media': {
35+
'screen and (width <= 640px)': {
36+
selectors: {
37+
'[data-padding="true"] &': {
38+
height: '60%',
39+
width: 'calc(100% - 32px)',
40+
paddingRight: 0,
41+
paddingBottom: 32,
42+
alignSelf: 'flex-end',
43+
},
44+
},
45+
},
46+
},
3447
selectors: {
3548
'[data-padding="true"] &': {
3649
width: 'calc(100% - 64px)',
@@ -79,4 +92,9 @@ export const modalControls = style({
7992
minWidth: '48px',
8093
padding: '8px 0 0 16px',
8194
pointerEvents: 'auto',
95+
'@media': {
96+
'screen and (width <= 640px)': {
97+
top: -48,
98+
},
99+
},
82100
});

packages/frontend/core/src/modules/peek-view/view/peek-view-controls.css.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ export const root = style({
55
flexDirection: 'column',
66
height: '100%',
77
gap: 8,
8+
'@media': {
9+
'screen and (width <= 640px)': {
10+
flexDirection: 'row',
11+
},
12+
},
813
});
914

1015
export const button = style({

packages/frontend/mobile/src/pages/workspace/detail/mobile-detail-page.css.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ globalStyle('.doc-title-container', {
7373
},
7474
});
7575

76+
globalStyle('[data-peek-view-wrapper] .doc-title-container', {
77+
fontSize: cssVar('fontH6'),
78+
});
79+
7680
globalStyle('.affine-page-root-block-container', {
7781
'@container': {
7882
[`viewport (width <= 640px)`]: {

0 commit comments

Comments
 (0)