mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-13 09:28:14 +08:00
💄 修复居中异常
This commit is contained in:
@@ -48,8 +48,8 @@ function getTitle(): string {
|
|||||||
function getLineStyle(): StyleValue {
|
function getLineStyle(): StyleValue {
|
||||||
const ruleInline: StyleValue = "display: inline";
|
const ruleInline: StyleValue = "display: inline";
|
||||||
if (props.data.attributes === undefined) return ruleInline;
|
if (props.data.attributes === undefined) return ruleInline;
|
||||||
if (!props.data.attributes.align) return ruleInline;
|
if (props.data.attributes.align === undefined) return ruleInline;
|
||||||
return `textAlign: ${props.data.attributes.align}`;
|
return `text-align: ${props.data.attributes.align};`;
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style lang="css" scoped>
|
<style lang="css" scoped>
|
||||||
|
|||||||
Reference in New Issue
Block a user