diff options
author | Samuel Newman <mozzius@protonmail.com> | 2025-08-25 19:24:48 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-08-25 19:24:48 +0300 |
commit | 9d77b361fe67c0082452265d293c94e277e29aae (patch) | |
tree | 285988524504c6c15ab9a3ba039e71abaebe93bd | |
parent | 54f7af12ca963f4ec3f6a2899257f5f48eb30443 (diff) | |
download | voidsky-9d77b361fe67c0082452265d293c94e277e29aae.tar.zst |
add content hider padding (#8843)
-rw-r--r-- | src/components/Post/Embed/index.tsx | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/components/Post/Embed/index.tsx b/src/components/Post/Embed/index.tsx index 9c5444b27..8566c2fe6 100644 --- a/src/components/Post/Embed/index.tsx +++ b/src/components/Post/Embed/index.tsx @@ -87,14 +87,18 @@ function MediaEmbed({ switch (embed.type) { case 'images': { return ( - <ContentHider modui={rest.moderation?.ui('contentMedia')}> + <ContentHider + modui={rest.moderation?.ui('contentMedia')} + activeStyle={[a.mt_sm]}> <ImageEmbed embed={embed} {...rest} /> </ContentHider> ) } case 'link': { return ( - <ContentHider modui={rest.moderation?.ui('contentMedia')}> + <ContentHider + modui={rest.moderation?.ui('contentMedia')} + activeStyle={[a.mt_sm]}> <ExternalEmbed link={embed.view.external} onOpen={rest.onOpen} @@ -105,7 +109,9 @@ function MediaEmbed({ } case 'video': { return ( - <ContentHider modui={rest.moderation?.ui('contentMedia')}> + <ContentHider + modui={rest.moderation?.ui('contentMedia')} + activeStyle={[a.mt_sm]}> <VideoEmbed embed={embed.view} /> </ContentHider> ) |