`;
// First, render child folders (if any)
if (folder.children && Object.keys(folder.children).length > 0) {
@@ -1080,7 +1080,7 @@ function noteApp() {
@dragstart="onNoteDragStart('${note.path.replace(/'/g, "\\'")}', $event)"
@dragend="onNoteDragEnd()"
@click="${clickHandler}"
- class="note-item px-3 py-2 mb-1 text-sm rounded relative border-2 border-transparent"
+ class="note-item px-2 py-1 text-sm relative border-2 border-transparent"
style="${isCurrent ? 'background-color: var(--accent-light); color: var(--accent-primary);' : 'color: var(--text-primary);'} ${isImage ? 'opacity: 0.85;' : ''} cursor: pointer;"
@mouseover="if('${note.path}' !== currentNote && '${note.path}' !== currentImage) $el.style.backgroundColor='var(--bg-hover)'"
@mouseout="if('${note.path}' !== currentNote && '${note.path}' !== currentImage) $el.style.backgroundColor='transparent'"
@@ -1169,7 +1169,7 @@ function noteApp() {
const sidebar = document.querySelector('.flex-1.overflow-y-auto.custom-scrollbar');
if (!sidebar) return;
- const noteElements = sidebar.querySelectorAll('[class*="px-3 py-2 mb-1"]');
+ const noteElements = sidebar.querySelectorAll('.note-item');
let targetElement = null;
const noteName = notePath.split('/').pop().replace('.md', '');
diff --git a/frontend/index.html b/frontend/index.html
index 38092e8..5e937d4 100644
--- a/frontend/index.html
+++ b/frontend/index.html
@@ -443,10 +443,10 @@
cursor: copy !important;
}
- /* Folder tree styling */
+ /* Folder tree styling - compact Obsidian-like */
.folder-item {
user-select: none;
- transition: all 0.2s ease;
+ border-radius: 4px;
}
.folder-item:hover {
@@ -458,8 +458,11 @@
}
.note-item {
- padding-left: 1.5rem;
- transition: all 0.2s ease;
+ border-radius: 4px;
+ }
+
+ .note-item:hover {
+ background-color: var(--bg-hover);
}
/* Drag and drop improvements */
@@ -476,7 +479,7 @@
/* Smooth transitions for drag states */
.folder-item,
.note-item {
- transition: opacity 0.2s ease, transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
+ transition: background-color 0.15s ease, border-color 0.15s ease;
}
/* Better drop zone visibility */
@@ -1001,7 +1004,7 @@