Skip to content

Commit

Permalink
fix: margin for flatlist container not content container
Browse files Browse the repository at this point in the history
  • Loading branch information
nyagami committed Nov 26, 2024
1 parent 8a2dc15 commit 4bcd22b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/screens/novel/components/EditInfoModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -186,10 +186,10 @@ const EditInfoModal = ({

{novelInfo.genres !== undefined && novelInfo.genres !== '' ? (
<FlatList
contentContainerStyle={{ marginVertical: 8 }}
style={{ marginVertical: 8 }}
horizontal
data={novelInfo.genres?.split(',')}
keyExtractor={(item, index) => 'novelTag' + index}
keyExtractor={(_, index) => 'novelTag' + index}
renderItem={({ item }) => (
<GenreChip theme={theme} onPress={() => removeTag(item)}>
{item}
Expand Down

0 comments on commit 4bcd22b

Please sign in to comment.