refactor: update mobile gesture styles to use global styles for better maintainability
All checks were successful
Build / increment-version (push) Successful in 6s
Build / build-android (push) Successful in 5m11s
Build / create-release (push) Successful in 14s

This commit is contained in:
2026-07-11 20:48:54 +10:00
parent 3f5d5dec98
commit b7ec975fb0

View File

@@ -1,4 +1,4 @@
import { style } from '@vanilla-extract/css'; import { globalStyle, style } from '@vanilla-extract/css';
import { color, config, toRem } from 'folds'; import { color, config, toRem } from 'folds';
export const SwipeBackRoot = style({ export const SwipeBackRoot = style({
@@ -49,19 +49,18 @@ export const CompactDetailLayer = style({
display: 'flex', display: 'flex',
flexDirection: 'column', flexDirection: 'column',
// Pass through taps when outlet content is null/empty; real pages // Pass through taps when outlet content is null/empty; real pages
// re-enable pointer events on their root via the child selector. // re-enable pointer events on their root via the child rule below.
pointerEvents: 'none', pointerEvents: 'none',
selectors: { });
'& > *': {
pointerEvents: 'auto', globalStyle(`${CompactDetailLayer} > *`, {
flex: 1, pointerEvents: 'auto',
minHeight: 0, flex: 1,
minWidth: 0, minHeight: 0,
display: 'flex', minWidth: 0,
flexDirection: 'column', display: 'flex',
backgroundColor: color.Background.Container, flexDirection: 'column',
}, backgroundColor: color.Background.Container,
},
}); });
export const SwipeToReplyLayer = style({ export const SwipeToReplyLayer = style({