No documents found
${searchQuery || selectedTag ? 'Try adjusting your filters' : 'Create your first document'}
- +diff --git a/public/css/style.css b/public/css/style.css index c5ffc92..a9b539f 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -932,6 +932,41 @@ ul, ol { border-top: 1px solid var(--color-border); } +.modal-close { + background: none; + border: none; + color: var(--color-text-muted); + cursor: pointer; + padding: var(--space-1); + border-radius: var(--radius-sm); + font-size: 1rem; +} + +.modal-close:hover { + background: var(--color-hover); + color: var(--color-text); +} + +.form-control { + width: 100%; + padding: var(--space-3); + background: var(--color-bg); + border: 1px solid var(--color-border); + border-radius: var(--radius-md); + color: var(--color-text); + font-size: 0.875rem; +} + +.form-control:focus { + outline: none; + border-color: var(--color-accent); +} + +.form-control option { + background: var(--color-surface); + color: var(--color-text); +} + /* === Login Screen === */ .login-screen { min-height: 100vh; diff --git a/public/js/app.js b/public/js/app.js index cf73bdf..b54a801 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -143,6 +143,6 @@ document.addEventListener('keydown', (e) => { } if ((e.ctrlKey || e.metaKey) && e.key === 'n' && window.app.state.view === 'dashboard') { e.preventDefault(); - window.app.navigate('editor'); + window.showNewDocModal(); } }); diff --git a/public/js/components/sidebar.js b/public/js/components/sidebar.js index af2c299..e7905f4 100644 --- a/public/js/components/sidebar.js +++ b/public/js/components/sidebar.js @@ -58,7 +58,8 @@ export function renderSidebar({ libraries, tags, selectedLibrary, selectedTag, o
@@ -66,18 +67,21 @@ export function renderSidebar({ libraries, tags, selectedLibrary, selectedTag, o (function() { var callbacks = window.__sidebarCallbacks; document.querySelectorAll('[data-action="home"]').forEach(function(el) { - el.addEventListener('click', function() { + el.addEventListener('click', function(e) { + e.stopPropagation(); if (callbacks && callbacks.onHome) callbacks.onHome(); }); }); document.querySelectorAll('[data-action="library"]').forEach(function(el) { - el.addEventListener('click', function() { + el.addEventListener('click', function(e) { + e.stopPropagation(); var id = this.getAttribute('data-library-id'); if (callbacks && callbacks.onSelectLibrary) callbacks.onSelectLibrary(id); }); }); document.querySelectorAll('[data-action="tag"]').forEach(function(el) { - el.addEventListener('click', function() { + el.addEventListener('click', function(e) { + e.stopPropagation(); var tag = this.getAttribute('data-tag'); if (callbacks && callbacks.onSelectTag) callbacks.onSelectTag(tag); }); diff --git a/public/js/views/dashboard.js b/public/js/views/dashboard.js index 00e3750..12705f9 100644 --- a/public/js/views/dashboard.js +++ b/public/js/views/dashboard.js @@ -83,8 +83,8 @@ export async function renderDashboard(app) {${searchQuery || selectedTag ? 'Try adjusting your filters' : 'Create your first document'}
- +Choose a library for your document:
+Libraries help you organize your documents.
+