style: adjust font size

This commit is contained in:
codytseng 2024-11-09 23:44:34 +08:00
parent 524c57c237
commit ad24ac3e95
17 changed files with 85 additions and 88 deletions

View file

@ -36,7 +36,7 @@ const Content = memo(
if (images.length) {
nodes.push(
<ImageGallery
className="mt-2 w-fit"
className={`w-fit ${size === 'small' ? 'mt-1' : 'mt-2'}`}
key={`image-gallery-${event.id}`}
images={images}
isNsfw={isNsfw}
@ -50,7 +50,7 @@ const Content = memo(
videos.forEach((src, index) => {
nodes.push(
<VideoPlayer
className="mt-2"
className={size === 'small' ? 'mt-1' : 'mt-2'}
key={`video-${index}-${src}`}
src={src}
isNsfw={isNsfw}
@ -68,11 +68,7 @@ const Content = memo(
})
}
return (
<div className={cn('text-sm text-wrap break-words whitespace-pre-wrap', className)}>
{nodes}
</div>
)
return <div className={cn('text-wrap break-words whitespace-pre-wrap', className)}>{nodes}</div>
}
)
Content.displayName = 'Content'