Skip to content

Commit 861941c

Browse files
committed
fix: revert unwanted change
1 parent e8970c9 commit 861941c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

package/src/components/Poll/components/PollOption.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,7 @@ export const PollOption = ({ option, showProgressBar = true }: PollOptionProps)
128128
<View style={[styles.wrapper, wrapper]}>
129129
<View style={[styles.container, container]}>
130130
<VoteButton option={option} />
131-
<View style={{ flex: 1, alignItems: 'flex-start', justifyContent: 'flex-start' }}>
132-
<Text style={[styles.text, { color: black }, text]}>{option.text}</Text>
133-
</View>
131+
<Text style={[styles.text, { color: black }, text]}>{option.text}</Text>
134132
<View style={[styles.votesContainer, votesContainer]}>
135133
{relevantVotes.map((vote: PollVote) => (
136134
<Avatar image={vote.user?.image as string} key={vote.id} size={20} />
@@ -180,6 +178,7 @@ const styles = StyleSheet.create({
180178
container: { flexDirection: 'row' },
181179
progressBar: { borderRadius: 4, flex: 1, flexDirection: 'row', height: 4, marginTop: 2 },
182180
text: {
181+
flex: 1,
183182
fontSize: 16,
184183
marginLeft: 4,
185184
},

0 commit comments

Comments
 (0)