diff --git a/frontend/app.js b/frontend/app.js index 0043698..0e6bb7a 100644 --- a/frontend/app.js +++ b/frontend/app.js @@ -536,7 +536,7 @@ function noteApp() { @dragstart="onNoteDragStart('${note.path.replace(/'/g, "\\'")}', $event)" @dragend="onNoteDragEnd()" @click="loadNote('${note.path.replace(/'/g, "\\'")}')" - class="note-item px-3 py-2 mb-1 text-sm rounded relative" + class="note-item px-3 py-2 mb-1 text-sm rounded relative border-2 border-transparent" style="${isCurrentNote ? 'background-color: var(--accent-light); color: var(--accent-primary);' : 'color: var(--text-primary);'} cursor: pointer;" @mouseover="if('${note.path}' !== currentNote) $el.style.backgroundColor='var(--bg-hover)'" @mouseout="if('${note.path}' !== currentNote) $el.style.backgroundColor='transparent'" diff --git a/frontend/index.html b/frontend/index.html index da53a12..2ac3e29 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -909,26 +909,18 @@ >⊟ -
- 💡 Drag=Move | Ctrl+Drag=Link -
- - - -
-
- 📂 Root + +
+ 💡 Drag=Move | Ctrl+Drag=Link + 📂 Drop here for Root
@@ -944,7 +936,7 @@ @dragstart="onNoteDragStart(note.path, $event)" @dragend="onNoteDragEnd()" @click="loadNote(note.path)" - class="note-item px-3 py-2 mb-1 text-sm rounded relative" + class="note-item px-3 py-2 mb-1 text-sm rounded relative border-2 border-transparent" :style="(currentNote === note.path ? 'background-color: var(--accent-light); color: var(--accent-primary);' : 'color: var(--text-primary);') + (draggedNote || draggedFolder ? ' cursor: grabbing;' : ' cursor: pointer;')" @mouseover="if(currentNote !== note.path) $el.style.backgroundColor='var(--bg-hover)'" @mouseout="if(currentNote !== note.path) $el.style.backgroundColor='transparent'"