diff --git a/packages/pl-fe/src/components/still-image.tsx b/packages/pl-fe/src/components/still-image.tsx index 048177afe..9ccfd35fc 100644 --- a/packages/pl-fe/src/components/still-image.tsx +++ b/packages/pl-fe/src/components/still-image.tsx @@ -45,7 +45,11 @@ const StillImage: React.FC = ({ if (hoverToPlay && canvas.current && img.current) { canvas.current.width = img.current.naturalWidth; canvas.current.height = img.current.naturalHeight; - canvas.current.getContext('2d')?.drawImage(img.current, 0, 0); + const context = canvas.current.getContext('2d'); + if (context) { + context.imageSmoothingQuality = 'high'; + context.drawImage(img.current, 0, 0); + } } if (onLoad) { diff --git a/packages/pl-fe/src/components/ui/emoji.tsx b/packages/pl-fe/src/components/ui/emoji.tsx index 84b820e8c..023f27322 100644 --- a/packages/pl-fe/src/components/ui/emoji.tsx +++ b/packages/pl-fe/src/components/ui/emoji.tsx @@ -31,7 +31,7 @@ const Emoji: React.FC = (props): JSX.Element | null => { = ({ text, emojis }) => { const filename = emoji.static_url; if (filename?.length > 0) { - return {text}; + return ; + // return {text}; } } diff --git a/packages/pl-fe/src/styles/markup.scss b/packages/pl-fe/src/styles/markup.scss index 4f4bbcc9b..570b084ae 100644 --- a/packages/pl-fe/src/styles/markup.scss +++ b/packages/pl-fe/src/styles/markup.scss @@ -122,23 +122,24 @@ @apply hover:underline text-primary-600 dark:text-accent-blue hover:text-primary-800 dark:hover:text-accent-blue; } - .invisible { + span.invisible { font-size: 0 !important; line-height: 0 !important; display: inline-block; width: 0; height: 0; position: absolute; + + img, + svg { + margin: 0 !important; + border: 0 !important; + padding: 0 !important; + width: 0 !important; + height: 0 !important; + } } - .invisible img, - .invisible svg { - margin: 0 !important; - border: 0 !important; - padding: 0 !important; - width: 0 !important; - height: 0 !important; - } } /* User setting to underline links */