Skip to content

Commit a55774d

Browse files
authored
fix: remove bottom padding from poll option with votes in poll results (#3059)
1 parent 30ddab0 commit a55774d

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/components/Poll/PollActions/PollResults/PollOptionWithVotes.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ export const PollOptionWithVotes = ({
4646
className={clsx('str-chat__poll-option', {
4747
'str-chat__poll-option--has-more-votes':
4848
isVotesPreview && voteCount > countVotesPreview,
49+
'str-chat__poll-option--has-votes': voteCount,
4950
})}
5051
>
5152
<PollOptionWithVotesHeader option={option} optionOrderNumber={orderNumber} />

src/components/Poll/styling/PollResults.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@
8282
}
8383
}
8484

85-
.str-chat__poll-option--has-more-votes {
85+
.str-chat__poll-option--has-more-votes,
86+
.str-chat__poll-option--has-votes {
8687
padding-bottom: 0;
8788
}
8889
}

0 commit comments

Comments
 (0)