Skip to content
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

style: Improve block styles #13564

Open
wants to merge 13 commits into
base: dev
Choose a base branch
from
Open

style: Improve block styles #13564

wants to merge 13 commits into from

Conversation

TCOTC
Copy link
Contributor

@TCOTC TCOTC commented Dec 20, 2024

  1. 统一各种块的 margin 和 padding ,排版效果更一致,减少 .dragover 样式的抖动
  2. 列表项竖线增加的 4px 是子块之间的 margin ,多数情况下能使竖线的顶部对齐列表项的第二个子块(底部已经对齐了最后一个子块)
    image

@TCOTC TCOTC marked this pull request as ready for review December 20, 2024 22:40
@TCOTC TCOTC marked this pull request as draft December 20, 2024 23:37
@TCOTC TCOTC marked this pull request as ready for review December 21, 2024 18:27
@TCOTC
Copy link
Contributor Author

TCOTC commented Dec 21, 2024

另外在两个块之间移动的时候会出现闪烁,这个我解决不了。

我猜是 .dragover__bottom 和 .dragover__top 的样式没有完美衔接上,中间会出现一瞬间没有 box-shadow 样式。

不知道能不能在下一个 .dragover 添加之后再移除上一个 .dragover


虽然录屏完全看不出来,但这样来回晃就能复现:

video.webm

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