fix editor block handle and menu parity

This commit is contained in:
lix-2026
2026-04-30 21:50:40 +08:00
parent 2b88ecb4b9
commit 7565976810
7 changed files with 1496 additions and 623 deletions
+6 -6
View File
@@ -1762,16 +1762,16 @@ body {
}
#mnote-leptos-tiptap-island-editor-root .block-handle-shell {
left: -88px !important;
z-index: 5;
opacity: 0.2;
left: -32px !important;
z-index: 80;
opacity: 1;
pointer-events: none;
transition: opacity 120ms ease, transform 120ms ease;
}
#mnote-leptos-tiptap-island-editor-root .block-handle-shell:hover,
#mnote-leptos-tiptap-island-editor-root .block-handle-shell[data-dragging="true"] {
opacity: 0.6;
opacity: 1;
}
#mnote-leptos-tiptap-island-editor-root .block-handle-shell .block-handle-insert,
@@ -1902,7 +1902,7 @@ body {
}
#mnote-leptos-tiptap-island-editor-root .block-handle-shell {
left: -64px !important;
left: -32px !important;
}
}
@@ -1985,7 +1985,7 @@ mod tests {
fn mnote_css_keeps_tiptap_handles_in_margin_and_title_editable() {
assert!(MNOTE_CSS.contains(".document-title-input"));
assert!(MNOTE_CSS.contains(".block-handle-shell"));
assert!(MNOTE_CSS.contains("left: -88px !important"));
assert!(MNOTE_CSS.contains("left: -32px !important"));
assert!(MNOTE_CSS.contains("pointer-events: none"));
assert!(MNOTE_CSS.contains(".material-symbols-outlined"));
assert!(MNOTE_CSS.contains(".mnote-tree-context-menu"));