mirror of
https://github.com/wanglin2/mind-map.git
synced 2026-02-17 22:08:25 +08:00
feat: 解决缩放非整数时编辑浮层dom会出现锯齿问题
This commit is contained in:
@@ -229,6 +229,12 @@ class RichText {
|
||||
outline: none;
|
||||
word-break: break-all;
|
||||
padding: ${paddingY}px ${paddingX}px;
|
||||
// 强制使用gpu加速精确计算
|
||||
transform-style: preserve-3d;
|
||||
// 使用 filter 提高清晰度 在某些1080p屏幕下,字体模糊
|
||||
filter: contrast(1) saturate(1);
|
||||
// 3d下 渲染层优化
|
||||
backface-visibility: hidden;
|
||||
`
|
||||
this.textEditNode.addEventListener('click', e => {
|
||||
e.stopPropagation()
|
||||
|
||||
Reference in New Issue
Block a user