UI polish: notes/tasks list views

- NotesListView: skeleton shimmer for grid and list modes; grid columns change from fixed 3 to auto-fill(260px)
- NoteCard compact: flat border-bottom row style instead of stacked mini-cards; gradient fade mask on grid preview text
- TaskCard compact: flat border-bottom row style; show up to 2 tags
- TasksListView: gradient + shadow on New Task button (matches NotesListView)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-10 22:39:05 -04:00
parent f755067cbd
commit 6e9ec26c8e
4 changed files with 89 additions and 3 deletions
+16
View File
@@ -78,6 +78,19 @@ function goEdit() {
align-items: center;
gap: 0.6rem;
padding: 0.45rem 0.75rem;
background: var(--color-bg-card);
box-shadow: none;
border-radius: 0;
border-bottom: 1px solid var(--color-border);
transform: none !important;
}
.note-card.compact:first-child {
border-top: 1px solid var(--color-border);
}
.note-card.compact:hover {
box-shadow: none;
background: rgba(99, 102, 241, 0.04);
transform: none;
}
.note-title-compact {
font-size: 0.9rem;
@@ -137,6 +150,9 @@ function goEdit() {
font-size: 0.9rem;
max-height: 7.5em;
overflow: hidden;
position: relative;
-webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}
.note-meta {
display: flex;
+25
View File
@@ -59,6 +59,14 @@ function isOverdue(): boolean {
<PriorityBadge :priority="task.priority!" />
<span class="task-title-compact">{{ task.title || "Untitled" }}</span>
<span v-if="projectTitle" class="project-crumb">{{ projectTitle }}</span>
<div class="task-tags-compact">
<TagPill
v-for="tag in task.tags?.slice(0, 2)"
:key="tag"
:tag="tag"
@click.stop="emit('tag-click', tag)"
/>
</div>
<span v-if="task.due_date" :class="['due-compact', { overdue: isOverdue() }]">
{{ task.due_date }}
</span>
@@ -115,6 +123,18 @@ function isOverdue(): boolean {
align-items: center;
gap: 0.5rem;
padding: 0.4rem 0.75rem;
box-shadow: none;
border-radius: 0;
border-bottom: 1px solid var(--color-border);
transform: none !important;
}
.task-card.compact:first-child {
border-top: 1px solid var(--color-border);
}
.task-card.compact:hover {
box-shadow: none;
background: rgba(99, 102, 241, 0.04);
transform: none;
}
/* Status dot */
@@ -164,6 +184,11 @@ function isOverdue(): boolean {
white-space: nowrap;
flex-shrink: 0;
}
.task-tags-compact {
display: flex;
gap: 0.25rem;
flex-shrink: 0;
}
.due-compact {
font-size: 0.75rem;
color: var(--color-text-muted);