Refine event status filter styling

This commit is contained in:
Codex Agent
2026-01-20 13:29:43 +01:00
parent a70a842778
commit 09132125c6

View File

@@ -313,12 +313,20 @@ function EventsList({
</Text> </Text>
</XStack> </XStack>
<ScrollView horizontal showsHorizontalScrollIndicator={false}> <ScrollView horizontal showsHorizontalScrollIndicator={false}>
<XStack
alignItems="center"
padding="$1"
borderRadius={999}
borderWidth={1}
borderColor={border}
backgroundColor={surfaceMuted}
>
<ToggleGroup <ToggleGroup
type="single" type="single"
value={statusFilter} value={statusFilter}
onValueChange={(value) => value && onStatusChange(value as EventStatusKey)} onValueChange={(value) => value && onStatusChange(value as EventStatusKey)}
> >
<XStack space="$2" paddingVertical="$1"> <XStack space="$1.5">
{filters.map((filter) => { {filters.map((filter) => {
const active = filter.key === statusFilter; const active = filter.key === statusFilter;
return ( return (
@@ -327,22 +335,34 @@ function EventsList({
value={filter.key} value={filter.key}
borderRadius={999} borderRadius={999}
borderWidth={1} borderWidth={1}
borderColor={active ? activeBorder : border} borderColor={active ? activeBorder : 'transparent'}
backgroundColor={active ? activeBg : surface} backgroundColor={active ? activeBg : 'transparent'}
paddingVertical="$2" paddingVertical="$1.5"
paddingHorizontal="$3" paddingHorizontal="$3"
> >
<XStack alignItems="center" space="$1.5"> <XStack alignItems="center" space="$1.5">
<Text fontSize="$xs" fontWeight="700" color={active ? primary : muted}> <Text fontSize="$xs" fontWeight="700" color={active ? primary : muted}>
{filter.label} {filter.label}
</Text> </Text>
<PillBadge tone={active ? 'success' : 'muted'}>{filter.count}</PillBadge> <XStack
paddingHorizontal="$1.5"
paddingVertical="$0.5"
borderRadius={999}
borderWidth={1}
borderColor={active ? activeBorder : border}
backgroundColor={surface}
>
<Text fontSize={10} fontWeight="800" color={active ? primary : muted}>
{filter.count}
</Text>
</XStack>
</XStack> </XStack>
</ToggleGroup.Item> </ToggleGroup.Item>
); );
})} })}
</XStack> </XStack>
</ToggleGroup> </ToggleGroup>
</XStack>
</ScrollView> </ScrollView>
</YStack> </YStack>