Tighten dev switcher collapse and add bottom nav spacing
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (push) Has been cancelled
tests / ui (push) Has been cancelled

This commit is contained in:
Codex Agent
2026-02-04 09:02:00 +01:00
parent cffe8e6cd4
commit 0e32baee05
2 changed files with 13 additions and 6 deletions

View File

@@ -79,10 +79,14 @@ export function DevTenantSwitcher({ bottomOffset = 16, variant = 'floating' }: D
size="$2" size="$2"
theme="yellow" theme="yellow"
onPress={() => setCollapsed(false)} onPress={() => setCollapsed(false)}
borderRadius={999} circular
minWidth={0}
width={34}
height={34}
padding={0}
icon={<PanelRightOpen size={16} />} icon={<PanelRightOpen size={16} />}
aria-label="Demo tenants anzeigen"
> >
Demo tenants
</Button> </Button>
); );
} }
@@ -144,14 +148,18 @@ export function DevTenantSwitcher({ bottomOffset = 16, variant = 'floating' }: D
size="$3" size="$3"
theme="yellow" theme="yellow"
icon={<PanelRightOpen size={16} />} icon={<PanelRightOpen size={16} />}
borderRadius={999} circular
minWidth={0}
width={40}
height={40}
padding={0}
position="fixed" position="fixed"
right="$4" right="$4"
zIndex={1000} zIndex={1000}
onPress={() => setCollapsed(false)} onPress={() => setCollapsed(false)}
aria-label="Demo tenants anzeigen"
style={{ bottom: bottomOffset + 70 }} style={{ bottom: bottomOffset + 70 }}
> >
Demo tenants
</Button> </Button>
); );
} }

View File

@@ -329,11 +329,10 @@ export function MobileShell({ title, subtitle, children, activeTab, onBack, head
<YStack <YStack
flex={1} flex={1}
padding="$4" padding="$4"
paddingBottom="$10"
gap="$3" gap="$3"
width="100%" width="100%"
maxWidth={800} maxWidth={800}
style={{ paddingBottom: 'calc(env(safe-area-inset-bottom, 0px) + 96px)' }} style={{ paddingBottom: 'calc(env(safe-area-inset-bottom, 0px) + 128px)' }}
> >
{!online ? ( {!online ? (
<XStack alignItems="center" justifyContent="center" borderRadius={12} backgroundColor={theme.warningBg} paddingVertical="$2" paddingHorizontal="$3"> <XStack alignItems="center" justifyContent="center" borderRadius={12} backgroundColor={theme.warningBg} paddingVertical="$2" paddingHorizontal="$3">