Tighten dev switcher collapse and add bottom nav spacing
This commit is contained in:
@@ -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>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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">
|
||||||
|
|||||||
Reference in New Issue
Block a user