Skip to content

Commit d7871aa

Browse files
committed
fix(editor): update mindmap styles for better usability
1 parent 0630d45 commit d7871aa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/renderer/components/editor/mindmap/Mindmap.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function init() {
3030
mm = Markmap.create(svgRef.value!, {
3131
duration: 0,
3232
style: () => `
33-
.markmap-node div { color: var(--color-text); }
33+
.markmap-node div { color: var(--color-text); user-select: none; cursor: default; }
3434
.markmap-node circle { fill: var(--color-bg); }
3535
`,
3636
})
@@ -132,7 +132,7 @@ watch(selectedSnippetContent, () => {
132132
</EditorHeaderTool>
133133
<div
134134
ref="mindmapRef"
135-
class="h-full"
135+
class="h-full cursor-grab"
136136
>
137137
<svg
138138
ref="svgRef"

0 commit comments

Comments
 (0)