chore(core): set read-only mode on mobile device (#7651)

Close [BS-795](https://linear.app/affine-design/issue/BS-795/affine-mobile-设置只读模式)

- Set read-only mode on mobile device
- Add mobile only support read-only warning toast
- remove `user-select: none` so that user can select text in read-only mode
This commit is contained in:
L-Sun committed 2024-08-01 05:22:50 +00:00
1 parent 3a0241340c
commit 33fc00f8c7
6 files changed
+21 -4

No files matched your search

@@ -3,8 +3,8 @@ import { style } from '@vanilla-extract/css';
export const browserWarningStyle = style({
backgroundColor: cssVar('backgroundWarningColor'),
color: cssVar('warningColor'),
height: '36px',
width: '100%',
padding: '8px 16px',
fontSize: cssVar('fontSm'),
display: 'flex',
justifyContent: 'center',