Fix sticky task search bar
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-01-20 09:04:48 +01:00
parent e1221e0466
commit 7a71efedd1
2 changed files with 52 additions and 48 deletions

View File

@@ -750,6 +750,12 @@ export default function MobileEventTasksPage() {
</YStack>
</Card>
<YStack
position="sticky"
zIndex={45}
width="100%"
style={{ top: 'calc(env(safe-area-inset-top, 0px) + 76px)' }}
>
<Card
borderRadius={20}
borderWidth={2}
@@ -760,11 +766,6 @@ export default function MobileEventTasksPage() {
shadowOpacity={0.16}
shadowRadius={16}
shadowOffset={{ width: 0, height: 10 }}
style={{
position: 'sticky',
top: 'calc(env(safe-area-inset-top, 0px) + 76px)',
zIndex: 45,
}}
>
<XStack alignItems="center" space="$2">
<XStack flex={1}>
@@ -801,6 +802,7 @@ export default function MobileEventTasksPage() {
</XStack>
</Card>
</YStack>
</YStack>
) : null}
{loading ? (

View File

@@ -270,6 +270,8 @@ describe('MobileEventTasksPage', () => {
expect(await screen.findByText('Photo tasks for this event')).toBeInTheDocument();
expect(screen.getByText('Quick jump')).toBeInTheDocument();
expect(screen.getByText('assigned')).toBeInTheDocument();
expect(screen.getByPlaceholderText('Search photo tasks')).toBeInTheDocument();
expect(screen.getByText('Emotion')).toBeInTheDocument();
expect(api.getTaskCollections).toHaveBeenCalledWith(
expect.objectContaining({ event_type: 'wedding' }),