Skip to content

Record Protyle full width in attributes of .protyle, .protyle-content and .protyle-wysiywg. #15021

Open
@Wetoria

Description

@Wetoria

In what scenarios do you need this feature?

让数据库、html 等类型的块,占据思源文档区域的全部宽度。

Describe the optimal solution

思源目前只支持自适应和定宽两种方案,会在 protyle-wysiwyg 上设置 data-realwidth,但没有记录总体宽度。

希望在 protyle 宽度调整的计算逻辑里,能将 protyle、protyle-content、protyle-wysiwyg 的实际宽度写入属性CSS变量 --b3-protyle-width--b3-protyle-content-width--b3-protyle-wysiwyg-width 中。这样可以仅通过 CSS 方案调整数据库等块的宽度。

Describe the candidate solution

No response

Other information

No response

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