Revamp guest v2 upload camera controls
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user