fixup! client: fix MFM overflow

Turning the MFM render container into a div changes it to display
as a block which messes up rendering in some places, e.g. when
it is used to render user names in "Renoted by".
This commit is contained in:
Johann150 2023-06-27 22:21:31 +02:00
parent 2ea6daaf7a
commit 2d46cf7c1e
Signed by untrusted user: Johann150
GPG key ID: 9EE6577A2A06F8F1
2 changed files with 3 additions and 1 deletions

View file

@ -175,6 +175,8 @@ withDefaults(defineProps<{
<style lang="scss" scoped>
.havbbuyv {
white-space: pre-wrap;
display: inline-block;
vertical-align: top;
overflow: hidden;
&.nowrap {

View file

@ -334,6 +334,6 @@ export default defineComponent({
}).flat();
// Parse ast to DOM
return h('div', genEl(ast));
return h('span', genEl(ast));
},
});