Skip to content

Commit

Permalink
fix(ui/settings/Developer): fix border radiuses for Asset Browser
Browse files Browse the repository at this point in the history
  • Loading branch information
PalmDevs authored Sep 15, 2024
1 parent d968d18 commit 87263d4
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/core/ui/settings/pages/Developer/AssetBrowser.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,13 @@ export default function AssetBrowser() {
style={{ margin: 10 }}
onChangeText={(v: string) => setSearch(v)}
/>
{/* TODO: Fix this, don't know why borderRadius is not working */}
<FlatList
style={{ borderRadius: 16, paddingHorizontal: 12, overflow: 'hidden', background: 'transparent' }}
data={Object.values(assetsMap).filter(a => a.name.includes(search) || a.id.toString() === search)}
// contentContainerStyle={{ borderRadius: 12, paddingHorizontal: 12, overflow: 'hidden' }}
renderItem={({ item }: any) => <AssetDisplay asset={item} />}
ItemSeparatorComponent={LegacyFormDivider}
/>
<View style={{ flex: 1, borderRadius: 16, paddingHorizontal: 12, overflow: 'hidden', background: 'transparent' }}>
<FlatList
data={Object.values(assetsMap).filter(a => a.name.includes(search) || a.id.toString() === search)}
renderItem={({ item }: any) => <AssetDisplay asset={item} />}
ItemSeparatorComponent={LegacyFormDivider}
/>
</View>
</View>
</ErrorBoundary>
);
Expand Down

0 comments on commit 87263d4

Please sign in to comment.