Skip to content

Commit 0232a84

Browse files
author
Andrzej Antoni Kwaśniewski
committed
fix hoverable icons display
1 parent d80d8fe commit 0232a84

2 files changed

Lines changed: 14 additions & 2 deletions

File tree

  • apps/common-app/src

apps/common-app/src/legacy/v2_api/hoverable_icons/index.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export default function Example() {
9595

9696
return (
9797
<Animated.View style={styles.container}>
98-
<Animated.View style={{ flexDirection: 'row', overflow: 'visible' }}>
98+
<Animated.View style={styles.wrapper}>
9999
{images.map((source, index) => (
100100
<BoxComponent key={index} source={source} />
101101
))}
@@ -116,4 +116,10 @@ const styles = StyleSheet.create({
116116
height: SIZE,
117117
marginHorizontal: 8,
118118
},
119+
wrapper: {
120+
justifyContent: 'center',
121+
alignItems: 'center',
122+
flexDirection: 'row',
123+
flexWrap: 'wrap',
124+
},
119125
});

apps/common-app/src/new_api/platform_specific/hoverable_icons/index.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export default function Example() {
9898

9999
return (
100100
<Animated.View style={styles.container}>
101-
<Animated.View style={{ flexDirection: 'row', overflow: 'visible' }}>
101+
<Animated.View style={styles.wrapper}>
102102
{images.map((source, index) => (
103103
<BoxComponent key={index} source={source} />
104104
))}
@@ -119,4 +119,10 @@ const styles = StyleSheet.create({
119119
height: SIZE,
120120
marginHorizontal: 8,
121121
},
122+
wrapper: {
123+
justifyContent: 'center',
124+
alignItems: 'center',
125+
flexDirection: 'row',
126+
flexWrap: 'wrap',
127+
},
122128
});

0 commit comments

Comments
 (0)