mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-28 16:38:23 +01:00
🎨
This commit is contained in:
parent
f562642944
commit
2511a5c17b
1 changed files with 7 additions and 3 deletions
|
@ -404,9 +404,13 @@ export default function (props: MfmProps, { emit }: { emit: SetupContext<MfmEven
|
|||
style: QUOTE_STYLE,
|
||||
}, genEl(token.children, scale, true))];
|
||||
} else if (token.children.length === 1 && token.children[0].type === 'url') {
|
||||
return [h(MkUrlPreview, {
|
||||
return [h('div', { style: 'padding-block: 8px' }, [
|
||||
h(MkUrlPreview, {
|
||||
url: token.children[0].props.url,
|
||||
})];
|
||||
compact: true,
|
||||
detail: true,
|
||||
}),
|
||||
])];
|
||||
} else {
|
||||
return [h('div', {
|
||||
style: QUOTE_STYLE,
|
||||
|
|
Loading…
Reference in a new issue