Feat v0.4.2 tags search (#24)
All checks were successful
CI/CD / detect-changes (push) Successful in 4s
CI/CD / test-frontend (push) Successful in 5s
CI/CD / test-go-pg (push) Successful in 2m39s
CI/CD / test-sqlite (push) Successful in 2m48s
CI/CD / build-and-deploy (push) Successful in 1m6s

Co-authored-by: Jeffrey Smith <jasafpro@gmail.com>
Co-committed-by: Jeffrey Smith <jasafpro@gmail.com>
This commit was merged in pull request #24.
This commit is contained in:
2026-03-29 13:55:18 +00:00
committed by xcaliber
parent 03c182b9d1
commit 32beb3cee4
7 changed files with 661 additions and 48 deletions

View File

@@ -373,6 +373,162 @@
color: var(--warning);
}
/* ── Tag Pills (shared) ─────────────────── */
.tag-pill {
display: inline-block;
padding: 1px 8px;
font-size: 11px;
background: var(--bg-raised);
border: 1px solid var(--border);
border-radius: 10px;
color: var(--text-2);
margin: 2px 2px;
white-space: nowrap;
cursor: pointer;
line-height: 1.6;
transition: var(--transition);
}
.tag-pill:hover { background: var(--bg-hover); color: var(--text); }
.tag-pill--active { background: var(--accent); color: #fff; border-color: var(--accent); }
.tag-pill__remove {
margin-left: 4px;
font-size: 10px;
opacity: 0.6;
cursor: pointer;
}
.tag-pill__remove:hover { opacity: 1; }
/* ── Tag Filter (sidebar) ──────────────── */
.tag-filter {
padding: 6px 14px 4px;
border-bottom: 1px solid var(--border);
flex-shrink: 0;
}
.tag-filter__label {
font-size: 11px;
color: var(--text-3);
margin-bottom: 3px;
display: flex;
align-items: center;
justify-content: space-between;
}
.tag-filter__clear {
font-size: 10px;
color: var(--accent);
cursor: pointer;
background: none;
border: none;
padding: 0;
font-family: var(--font);
}
.tag-filter__clear:hover { text-decoration: underline; }
.tag-filter__pills {
display: flex;
flex-wrap: wrap;
gap: 3px;
max-height: 60px;
overflow-y: auto;
}
.tag-filter__pills .tag-pill { font-size: 10px; padding: 0 6px; }
/* ── Tag Input (editor) ────────────────── */
.tag-input {
display: flex;
flex-wrap: wrap;
gap: 4px;
align-items: center;
padding: 4px 20px 6px;
border-bottom: 1px solid var(--border);
position: relative;
}
.tag-input__field {
border: none;
outline: none;
font-size: 12px;
background: transparent;
color: var(--text);
min-width: 80px;
flex: 1;
padding: 2px 0;
font-family: var(--font);
}
.tag-input__field::placeholder { color: var(--text-3); }
.tag-input .tag-pill { font-size: 11px; }
/* ── Tag Autocomplete ──────────────────── */
.tag-autocomplete {
position: absolute;
top: 100%;
left: 20px;
background: var(--bg-surface);
border: 1px solid var(--border);
border-radius: var(--radius);
max-height: 120px;
overflow-y: auto;
z-index: 10;
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
min-width: 140px;
}
.tag-autocomplete__item {
padding: 4px 10px;
font-size: 12px;
cursor: pointer;
color: var(--text);
}
.tag-autocomplete__item:hover { background: var(--bg-hover); }
/* ── Note Card Tags ────────────────────── */
.note-card__tags {
display: flex;
gap: 3px;
margin-top: 3px;
overflow: hidden;
}
.note-card__tags .tag-pill { font-size: 10px; padding: 0 6px; cursor: default; }
.note-card__tags .tag-pill--overflow {
background: transparent;
border: none;
color: var(--text-3);
padding: 0 2px;
cursor: default;
}
/* ── Folder Context Menu ───────────────── */
.folder-context-menu {
position: fixed;
z-index: 100;
background: var(--bg-surface);
border: 1px solid var(--border);
border-radius: var(--radius);
box-shadow: 0 4px 16px rgba(0,0,0,0.2);
min-width: 150px;
padding: 4px 0;
}
.folder-context-menu__item {
padding: 6px 14px;
font-size: 13px;
color: var(--text);
cursor: pointer;
transition: var(--transition);
}
.folder-context-menu__item:hover {
background: var(--bg-hover);
}
.folder-context-menu__item--danger {
color: var(--danger);
}
.folder-context-menu__item--danger:hover {
background: var(--danger-dim);
}
/* ── Drag and Drop ─────────────────────── */
.note-card--dragging { opacity: 0.4; }
.folder-tree__item--drop-target {
background: color-mix(in srgb, var(--accent) 10%, transparent) !important;
outline: 2px dashed var(--accent);
outline-offset: -2px;
}
/* ── Responsive ──────────────────────────── */
@media (max-width: 700px) {
.notes-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border); max-height: 40vh; }