diff --git a/packages/pl-fe/src/components/status-content.tsx b/packages/pl-fe/src/components/status-content.tsx index b5c68b05e..4def4b085 100644 --- a/packages/pl-fe/src/components/status-content.tsx +++ b/packages/pl-fe/src/components/status-content.tsx @@ -187,8 +187,9 @@ const StatusContent: React.FC = React.memo(({ : status.spoilerHtml; const direction = getTextDirection(status.search_index); - const className = clsx('relative overflow-hidden text-ellipsis break-words text-gray-900 focus:outline-none dark:text-gray-100', { + const className = clsx('relative text-ellipsis break-words text-gray-900 focus:outline-none dark:text-gray-100', { 'cursor-pointer': onClick, + 'overflow-hidden': collapsed, 'max-h-[200px]': collapsed && !quote, 'max-h-[120px]': collapsed && quote, 'leading-normal big-emoji': onlyEmoji, diff --git a/packages/pl-fe/src/features/emoji/index.ts b/packages/pl-fe/src/features/emoji/index.ts index 8fea95fae..bd84bfb1b 100644 --- a/packages/pl-fe/src/features/emoji/index.ts +++ b/packages/pl-fe/src/features/emoji/index.ts @@ -58,12 +58,12 @@ const validEmojiChar = (c: string) => isAlphaNumeric(c) || ['_', '-', '.'].includes(c); const convertCustom = (shortname: string, filename: string) => - `${shortname}`; + `${shortname}`; const convertUnicode = (c: string) => { const { unified, shortcode } = unicodeMapping[c]; - return `${c}`; + return `${c}`; }; const convertEmoji = (str: string, customEmojis: any) => { @@ -224,8 +224,6 @@ export { type Emoji, isCustomEmoji, isNativeEmoji, - emojifyText, - parseHTML, buildCustomEmojis, emojify as default, };