mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 11:19:56 +00:00
perf: 优化待办消息样式
This commit is contained in:
parent
d3bda0d869
commit
f9d1aa93c4
@ -3115,7 +3115,7 @@ export default {
|
||||
this.onPositionId(data.reply_id, data.msg_id)
|
||||
},
|
||||
|
||||
onViewText({target}, el) {
|
||||
onViewText({target, clientX}, el) {
|
||||
if (this.operateVisible) {
|
||||
return
|
||||
}
|
||||
@ -3167,6 +3167,9 @@ export default {
|
||||
case "LI":
|
||||
const dataClass = target.getAttribute('data-list')
|
||||
if (['checked', 'unchecked'].includes(dataClass)) {
|
||||
if (clientX - target.getBoundingClientRect().x > 18) {
|
||||
return;
|
||||
}
|
||||
let listElement = el.parentElement;
|
||||
while (listElement) {
|
||||
if (listElement.classList.contains('dialog-scroller')) {
|
||||
|
||||
@ -190,6 +190,14 @@
|
||||
width: auto;
|
||||
min-width: 1.2em;
|
||||
}
|
||||
> .ql-ui:before {
|
||||
color: #0088ff;
|
||||
}
|
||||
&[data-list=bullet] {
|
||||
> .ql-ui:before {
|
||||
font-weight: 900;
|
||||
}
|
||||
}
|
||||
&[data-list=checked],
|
||||
&[data-list=unchecked] {
|
||||
> .ql-ui:before {
|
||||
@ -204,6 +212,7 @@
|
||||
&[data-list=unchecked] {
|
||||
> .ql-ui:before {
|
||||
content: "\e6f1";
|
||||
color: #777;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -824,6 +824,12 @@
|
||||
text-align: left;
|
||||
margin-right: 0.2em;
|
||||
}
|
||||
|
||||
&[data-list=unchecked] {
|
||||
&::before {
|
||||
color: #777;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user