Revamp guest v2 upload camera controls

This commit is contained in:
Codex Agent
2026-02-03 21:45:30 +01:00
parent c4ccfa1353
commit c6a7f31ea0
3 changed files with 78 additions and 12 deletions

View File

@@ -32,6 +32,7 @@ export default function AppShell({ children }: AppShellProps) {
const { isDark } = useGuestThemeVariant();
const actionIconColor = isDark ? '#F8FAFF' : '#0F172A';
const matomoEnabled = typeof window !== 'undefined' && Boolean((window as any).__MATOMO_GUEST__?.enabled);
const isUploadRoute = /\/upload(?:\/|$)/.test(location.pathname);
const showFab = !/\/photo\/\d+/.test(location.pathname);
const goTo = (path: string) => () => {
@@ -145,13 +146,14 @@ export default function AppShell({ children }: AppShellProps) {
</Button>
<FloatingActionButton
onPress={goTo('/upload')}
hidden={isUploadRoute}
/>
<Button
size="$4"
circular
position="fixed"
bottom={28}
left="calc(50% + 52px)"
right={20}
zIndex={1100}
backgroundColor={isDark ? 'rgba(12, 16, 32, 0.75)' : 'rgba(255, 255, 255, 0.9)'}
borderWidth={1}