From 478453009e9f23c8115debed05ec28d2bda03636 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Sat, 20 Dec 2025 14:05:48 -0500 Subject: [PATCH] fix: Display of reactions dialog (#10973) --- app/components/Reactions/ViewReactionsDialog.tsx | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/app/components/Reactions/ViewReactionsDialog.tsx b/app/components/Reactions/ViewReactionsDialog.tsx index e820cc7cfd..76cc0b5d21 100644 --- a/app/components/Reactions/ViewReactionsDialog.tsx +++ b/app/components/Reactions/ViewReactionsDialog.tsx @@ -13,6 +13,8 @@ import Flex from "~/components/Flex"; import PlaceholderText from "~/components/PlaceholderText"; import Text from "~/components/Text"; import useStores from "~/hooks/useStores"; +import { CustomEmoji } from "@shared/components/CustomEmoji"; +import { isUUID } from "validator"; type Props = { /** Model for which to show the reactions. */ @@ -61,7 +63,11 @@ const ViewReactionsDialog: React.FC = ({ model }) => { aria-label={t("Reaction")} $active={selectedTab === reaction.emoji} > - {reaction.emoji} + {isUUID(reaction.emoji) ? ( + + ) : ( + {reaction.emoji} + )} ))} @@ -119,9 +125,11 @@ const StyledTab = styled(Tabs.Trigger)<{ $active: boolean }>` background: none; border: 0; border-radius: 4px 4px 0 0; - padding: 8px 12px 10px; user-select: none; transition: background-color 100ms ease; + vertical-align: bottom; + width: 36px; + height: 36px; &: ${hover} { background-color: ${s("listItemHoverBackground")}; @@ -136,7 +144,7 @@ const StyledTab = styled(Tabs.Trigger)<{ $active: boolean }>` bottom: 0; left: 0; right: 0; - height: 1px; + height: 2px; background: ${s("textSecondary")}; } `}