refactor: enhance mobile swipe gesture handling and improve outlet behavior on compact routes
Some checks failed
Build / increment-version (push) Successful in 6s
Build / build-android (push) Failing after 1m32s
Build / create-release (push) Has been skipped

This commit is contained in:
2026-07-11 20:36:10 +10:00
parent f709998c50
commit c7b6e8f5f0
10 changed files with 298 additions and 7 deletions

View File

@@ -36,7 +36,10 @@ export const CompactNavUnderlay = style({
display: 'flex',
flexDirection: 'column',
zIndex: 0,
pointerEvents: 'none',
// Keep underlay tappable if the detail layer is empty/transparent
// (e.g. space index after leaving DMs). Opaque detail content still
// sits above and receives taps first.
pointerEvents: 'auto',
});
export const CompactDetailLayer = style({
@@ -45,6 +48,20 @@ export const CompactDetailLayer = style({
minWidth: 0,
display: 'flex',
flexDirection: 'column',
// Pass through taps when outlet content is null/empty; real pages
// re-enable pointer events on their root via the child selector.
pointerEvents: 'none',
selectors: {
'& > *': {
pointerEvents: 'auto',
flex: 1,
minHeight: 0,
minWidth: 0,
display: 'flex',
flexDirection: 'column',
backgroundColor: color.Background.Container,
},
},
});
export const SwipeToReplyLayer = style({