Skip to content

Commit

Permalink
fix: social media typography
Browse files Browse the repository at this point in the history
  • Loading branch information
DIYgod committed Sep 11, 2024
1 parent adb39bc commit 5d27d29
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/renderer/src/components/ui/media.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ const MediaImpl: FC<MediaProps> = ({
{...(rest as ImgHTMLAttributes<HTMLImageElement>)}
onError={errorHandle}
className={cn(
hidden && "hidden",
!(props.width || props.height) && "size-full",
"bg-gray-200 object-cover duration-200 dark:bg-neutral-800",
popper && "cursor-zoom-in",
Expand Down Expand Up @@ -165,7 +164,6 @@ const MediaImpl: FC<MediaProps> = ({
return (
<span
className={cn(
hidden && "hidden",
"center",
!(props.width || props.height) && "size-full",
"relative bg-stone-100 object-cover",
Expand All @@ -186,7 +184,6 @@ const MediaImpl: FC<MediaProps> = ({
errorHandle,
handleClick,
handleOnLoad,
hidden,
imgSrc,
mediaContainerClassName,
mediaLoadState,
Expand All @@ -203,7 +200,10 @@ const MediaImpl: FC<MediaProps> = ({
return <FallbackMedia {...props} />
}
return (
<span className={cn("block overflow-hidden rounded", className)} style={style}>
<span
className={cn("block overflow-hidden rounded", hidden && "hidden", className)}
style={style}
>
{InnerContent}
</span>
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export const SocialMediaItem: EntryListItemFC = ({ entryId, entryPreview, transl
)}
>
<EntryTranslation
className="cursor-auto select-text [&_br:last-child]:hidden"
className="cursor-auto select-text prose-blockquote:mt-0 [&_br:last-child]:hidden"
source={content}
target={translation?.content}
isHTML
Expand Down

0 comments on commit 5d27d29

Please sign in to comment.