From 41f93a0c126ccf743f5822e69f86a040a9b12805 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9B=AE=E6=A3=83?= Date: Thu, 5 Sep 2024 18:36:51 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20=E4=BF=AE=E5=A4=8D=E7=89=B9?= =?UTF-8?q?=E5=AE=9A=E6=9D=A1=E4=BB=B6=E4=B8=8B=E7=9A=84=E6=B8=B2=E6=9F=93?= =?UTF-8?q?=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/post/tp-texts.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/post/tp-texts.vue b/src/components/post/tp-texts.vue index 0cda695f..9f6a532b 100644 --- a/src/components/post/tp-texts.vue +++ b/src/components/post/tp-texts.vue @@ -55,12 +55,16 @@ function getTitle(): string { function getLineStyle(): StyleValue { const style = >[]; + const ruleInline: StyleValue = "display: inline"; if (props.data.attributes === undefined) { + style.push(ruleInline); return style; } if (props.data.attributes.align) { const ruleAlign: StyleValue = `textAlign: ${props.data.attributes.align}`; style.push(ruleAlign); + } else { + style.push(ruleInline); } return style; }