Skip to content

Record the width of some Protyle elements in the attributes #15043

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

TCOTC
Copy link
Contributor

@TCOTC TCOTC commented Jun 16, 2025

  1. 重构 setPadding 函数,修复了编辑器边距动态变化导致 data-realwidth 不准确的问题
  2. 添加了几个元素的宽度 CSS 变量 fix Record Protyle full width in attributes of .protyle, .protyle-content and .protyle-wysiywg. #15021
  3. 移除 #editorAttr 元素,修复了全局标题角标伪元素共用一个 max-width 的问题

@TCOTC
Copy link
Contributor Author

TCOTC commented Jun 16, 2025

@Wetoria 经过在 Asri 主题 v3.4.0 测试,可以用变量来代替 JS 计算

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant