[WEB-1208] fix: todo list item word break (#4405)

This commit is contained in:
Aaryan Khandelwal 2024-05-08 14:44:18 +05:30 committed by GitHub
parent 2aaf0a1637
commit 3b17dc51ba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 8 additions and 2 deletions

View File

@ -72,10 +72,16 @@ ul[data-type="taskList"] li {
}
ul[data-type="taskList"] li > label {
position: absolute;
left: -5px;
margin: 0.1rem 0.15rem 0 0;
user-select: none;
}
ul[data-type="taskList"] li > div {
margin-left: 1.15rem;
}
ul[data-type="taskList"] li > label input[type="checkbox"] {
border: 1px solid rgba(var(--color-border-300)) !important;
outline: none;

View File

@ -113,7 +113,7 @@ export const CoreEditorExtensions = ({
}),
TaskItem.configure({
HTMLAttributes: {
class: "flex",
class: "relative",
},
nested: true,
}),

View File

@ -79,7 +79,7 @@ export const CoreReadOnlyEditorExtensions = (mentionConfig: {
}),
TaskItem.configure({
HTMLAttributes: {
class: "flex pointer-events-none",
class: "relative pointer-events-none",
},
nested: true,
}),