Skip to content

Bug: 一级标题设置为Default/Left, 在笔记中是正常的左对齐, 但是在白板中一级标题就是居中显示 #703

@TPSKTP

Description

@TPSKTP

H1设置的就是Default(Left/start):

Image

但是在白板中却是居中显示的:

Image

怀疑是不是这里代码写错了?


第二天我发现确实有点问题:

在开发者工具中找到了原因。
选择器 .canvas-node-container h1 强制设置了 text-align: center;,覆盖了对齐设置。

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions