Skip to content

Commit 5235a2f

Browse files
Post-review adjustments
1 parent 5d80600 commit 5235a2f

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

src/components/Reactions/MessageReactionsDetail.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,10 @@ export const MessageReactionsDetail: MessageReactionsDetailInterface = ({
210210
await contextHandleReaction(type, e);
211211

212212
// was 1, should be 0 after removal, display all reactions
213-
if (reactionCountBeforeRemoval <= 1) {
213+
if (
214+
selectedReactionType !== null &&
215+
reactionCountBeforeRemoval <= 1
216+
) {
214217
onSelectedReactionTypeChange?.(null);
215218
} else {
216219
refetch();
@@ -222,7 +225,7 @@ export const MessageReactionsDetail: MessageReactionsDetailInterface = ({
222225
)}
223226
</div>
224227
<span className='str-chat__message-reactions-detail__user-list-item-icon'>
225-
{EmojiComponent && !selectedReactionType && <EmojiComponent />}
228+
{!selectedReactionType && EmojiComponent && <EmojiComponent />}
226229
</span>
227230
</div>
228231
);

src/components/Reactions/styling/MessageReactionsDetail.scss

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,14 @@
2929
width: 100%;
3030
bottom: 0;
3131
inset-inline-start: 0;
32-
height: var(--size-12);
32+
height: var(--size-16);
3333
border-end-end-radius: inherit;
3434
border-end-start-radius: inherit;
35-
background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 5%, rgba(0, 0, 0, 0.1) 130%);
35+
background: linear-gradient(
36+
to bottom,
37+
transparent 5%,
38+
var(--background-core-elevation-0) 95%
39+
);
3640
}
3741

3842
font-family: var(--typography-font-family-sans);
@@ -65,7 +69,7 @@
6569
.str-chat__message-reactions-detail__reaction-type-list {
6670
list-style: none;
6771
margin: 0;
68-
padding-inline: var(--spacing-xs);
72+
padding-inline: var(--spacing-md);
6973
padding-block: var(--spacing-xs);
7074
display: flex;
7175
flex-wrap: wrap;

0 commit comments

Comments
 (0)