Skip to content

Commit da576a6

Browse files
committed
chore: fix channel preview layout
1 parent eb7adf0 commit da576a6

File tree

1 file changed

+7
-5
lines changed
  • packages/uikit-react-native-foundation/src/ui/GroupChannelPreview

1 file changed

+7
-5
lines changed

packages/uikit-react-native-foundation/src/ui/GroupChannelPreview/index.tsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ const GroupChannelPreview = ({
107107
</View>
108108
<View>{badgeCount > 0 && <Badge count={badgeCount} maxCount={maxBadgeCount} />}</View>
109109
</View>
110+
<Separator color={color.default.none.separator} />
110111
</View>
111-
<Separator color={color.default.none.separator} />
112112
</View>
113113
);
114114
};
@@ -121,11 +121,11 @@ const styles = createStyleSheet({
121121
height: 76,
122122
width: '100%',
123123
flexDirection: 'row',
124-
paddingHorizontal: 16,
125-
paddingTop: 10,
126124
alignItems: 'center',
125+
justifyContent: 'center',
127126
},
128127
coverContainer: {
128+
marginLeft: 16,
129129
marginRight: 16,
130130
},
131131
channelCover: {
@@ -135,6 +135,8 @@ const styles = createStyleSheet({
135135
},
136136
rightSection: {
137137
flex: 1,
138+
paddingTop: 10,
139+
paddingRight: 16,
138140
},
139141
rightTopSection: {
140142
flexDirection: 'row',
@@ -198,10 +200,10 @@ const styles = createStyleSheet({
198200
},
199201
separator: {
200202
position: 'absolute',
201-
right: 0,
203+
left: 0,
204+
right: -16,
202205
bottom: 0,
203206
height: 1,
204-
width: '84.5%',
205207
},
206208
});
207209

0 commit comments

Comments
 (0)