fix: wide emoji

This commit is contained in:
Shusui MOYATANI
2024-01-30 20:43:47 +09:00
parent db1ce45cd2
commit 880881c059
2 changed files with 2 additions and 2 deletions

View File

@@ -21,7 +21,7 @@ const EmojiDisplay: Component<EmojiDisplayProps> = (props) => (
{({ content }) => <span class="truncate">{content}</span>}
</Match>
<Match when={props.reactionTypes.type === 'CustomEmoji' && props.reactionTypes} keyed>
{({ shortcode, url }) => <img class="h-4 max-w-[3rem]" src={url} alt={`:${shortcode}:`} />}
{({ shortcode, url }) => <img class="h-4 max-w-[6rem]" src={url} alt={`:${shortcode}:`} />}
</Match>
</Switch>
);

View File

@@ -131,7 +131,7 @@ const TextNoteContentDisplay = (props: TextNoteContentDisplayProps) => {
// const { imageRef, canvas } = useImageAnimation({ initialPlaying: false });
return (
<img
class="inline-block h-8 max-w-[128px] align-middle"
class="inline-block h-8 max-w-[8rem]"
src={item.url}
alt={item.content}
title={item.shortcode}