Compare commits

...

4 Commits

Author SHA1 Message Date
GitHub Actions
e11304d093 chore: bump version to 4.11.105 [skip ci] 2026-05-13 00:15:56 +00:00
60d76d5165 feat(mobile): add confirmation dialog back to share picker with backdrop
All checks were successful
Build / increment-version (push) Successful in 7s
Build / build-android (push) Successful in 4m35s
Build / create-release (push) Successful in 14s
2026-05-13 10:15:47 +10:00
GitHub Actions
373e700a07 chore: bump version to 4.11.104 [skip ci] 2026-05-13 00:13:42 +00:00
f7b25261cc fix(mobile): make share picker fullscreen with full-width search, remove confirmation dialog
Some checks failed
Build / increment-version (push) Successful in 6s
Build / build-android (push) Has started running
Build / create-release (push) Has been cancelled
2026-05-13 10:13:35 +10:00
2 changed files with 140 additions and 150 deletions

View File

@@ -5,6 +5,7 @@ import FocusTrap from 'focus-trap-react';
import {
Avatar,
Box,
Button,
Header,
Icon,
IconButton,
@@ -127,7 +128,6 @@ export function ShareRoomPicker({ share, onPick, onDismiss }: ShareRoomPickerPro
return (
<Overlay open backdrop={<OverlayBackdrop />}>
<OverlayCenter>
<FocusTrap
focusTrapOptions={{
initialFocus: false,
@@ -136,8 +136,16 @@ export function ShareRoomPicker({ share, onPick, onDismiss }: ShareRoomPickerPro
escapeDeactivates: stopPropagation,
}}
>
<Modal size="300">
<Box grow="Yes" direction="Column" style={{ maxHeight: '85vh' }}>
<Box
grow="Yes"
direction="Column"
style={{
position: 'fixed',
inset: 0,
zIndex: 999,
backgroundColor: 'var(--bg-surface)',
}}
>
<Header
size="500"
style={{ padding: config.space.S400, paddingTop: config.space.S500 }}
@@ -161,7 +169,6 @@ export function ShareRoomPicker({ share, onPick, onDismiss }: ShareRoomPickerPro
<Box
style={{
padding: config.space.S400,
paddingTop: config.space.S200,
paddingBottom: config.space.S200,
}}
@@ -178,10 +185,7 @@ export function ShareRoomPicker({ share, onPick, onDismiss }: ShareRoomPickerPro
</Box>
<Scroll ref={scrollRef} size="300" hideTrack style={{ flex: 1, minHeight: 0 }}>
<Box
style={{ padding: config.space.S300, paddingTop: 0 }}
direction="Column"
>
<Box style={{ padding: config.space.S300, paddingTop: 0 }} direction="Column">
{vItems.length === 0 && (
<Box
style={{ padding: `${config.space.S700} 0` }}
@@ -200,9 +204,7 @@ export function ShareRoomPicker({ share, onPick, onDismiss }: ShareRoomPickerPro
</Text>
</Box>
)}
<Box
style={{ position: 'relative', height: virtualizer.getTotalSize() }}
>
<Box style={{ position: 'relative', height: virtualizer.getTotalSize() }}>
{vItems.map((vItem) => {
const roomId = items[vItem.index];
const room = getRoom(roomId);
@@ -258,9 +260,7 @@ export function ShareRoomPicker({ share, onPick, onDismiss }: ShareRoomPickerPro
</Box>
</Scroll>
</Box>
</Modal>
</FocusTrap>
</OverlayCenter>
{confirmRoomId && (() => {
const room = getRoom(confirmRoomId);
@@ -284,30 +284,20 @@ export function ShareRoomPicker({ share, onPick, onDismiss }: ShareRoomPickerPro
</Text>
</Box>
<Box gap="200" justifyContent="End">
<button
<Button
onClick={handleCancelConfirm}
style={{
padding: `${config.space.S200} ${config.space.S400}`,
borderRadius: config.radii.R400,
border: 'none',
background: 'transparent',
cursor: 'pointer',
}}
variant="Secondary"
size="400"
>
<Text size="B400">Cancel</Text>
</button>
<button
</Button>
<Button
onClick={handleConfirm}
style={{
padding: `${config.space.S200} ${config.space.S400}`,
borderRadius: config.radii.R400,
border: 'none',
background: 'var(--bg-primary)',
cursor: 'pointer',
}}
variant="Primary"
size="400"
>
<Text size="B400">Share</Text>
</button>
</Button>
</Box>
</Box>
</Modal>

View File

@@ -1,6 +1,6 @@
{
"name": "paarrot",
"version": "4.11.103",
"version": "4.11.105",
"description": "Paarrot - A Matrix client based on Cinny",
"engines": {
"node": ">=18.0.0"