add content hider padding (#8843)
This commit is contained in:
@@ -87,14 +87,18 @@ function MediaEmbed({
|
|||||||
switch (embed.type) {
|
switch (embed.type) {
|
||||||
case 'images': {
|
case 'images': {
|
||||||
return (
|
return (
|
||||||
<ContentHider modui={rest.moderation?.ui('contentMedia')}>
|
<ContentHider
|
||||||
|
modui={rest.moderation?.ui('contentMedia')}
|
||||||
|
activeStyle={[a.mt_sm]}>
|
||||||
<ImageEmbed embed={embed} {...rest} />
|
<ImageEmbed embed={embed} {...rest} />
|
||||||
</ContentHider>
|
</ContentHider>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
case 'link': {
|
case 'link': {
|
||||||
return (
|
return (
|
||||||
<ContentHider modui={rest.moderation?.ui('contentMedia')}>
|
<ContentHider
|
||||||
|
modui={rest.moderation?.ui('contentMedia')}
|
||||||
|
activeStyle={[a.mt_sm]}>
|
||||||
<ExternalEmbed
|
<ExternalEmbed
|
||||||
link={embed.view.external}
|
link={embed.view.external}
|
||||||
onOpen={rest.onOpen}
|
onOpen={rest.onOpen}
|
||||||
@@ -105,7 +109,9 @@ function MediaEmbed({
|
|||||||
}
|
}
|
||||||
case 'video': {
|
case 'video': {
|
||||||
return (
|
return (
|
||||||
<ContentHider modui={rest.moderation?.ui('contentMedia')}>
|
<ContentHider
|
||||||
|
modui={rest.moderation?.ui('contentMedia')}
|
||||||
|
activeStyle={[a.mt_sm]}>
|
||||||
<VideoEmbed embed={embed.view} />
|
<VideoEmbed embed={embed.view} />
|
||||||
</ContentHider>
|
</ContentHider>
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user