[loggi-l6t] UX: Compact record list items with better visual separation #107
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Bead ID:
loggi-l6tType: task
Priority: P2
Status: closed
Close reason: Implemented compact record list items with better visual separation. Changes: (1) Added .record-item and .record-item-diary CSS classes in input.css with stronger background (oklch(var(--b2)/0.7)) and 3px colored left border, (2) Added .record-list-compact class with tighter 0.375rem gap, (3) Updated timepoint.js, timerange.js, and diary.js build functions to use new classes with entry COLOR as border-left accent, (4) Updated entry.html loading skeleton and #recordList container to use record-list-compact, (5) Updated swipe-container card background to oklch(var(--b2)) for consistency. All approaches use custom CSS to avoid Tailwind JS-purging issue. Tests pass, both themes work.
Why
The Recent tab's record items are hard to scan — they take up too much vertical space and blend into the page background, making individual entries hard to differentiate from each other and from the surrounding UI.
What
Two problems to fix:
Too much vertical space — cards use generous padding (
p-3/p-4) and the list container hasspace-y-2gaps. With date separators on top, the list feels airy/bloated when scrolling through many records.Poor visual differentiation —
bg-base-200/40is nearly transparent against theb1page background. Theborder-base-300borders are subtle. Cards blend into the page and into each other.Acceptance criteria
Where
app/static/js/timepoint.js—buildTimepointItem()card classesapp/static/js/timerange.js—buildHistoryItem()card classesapp/static/js/diary.js—buildDiaryItem()card classesapp/templates/entry.html—#recordListcontainer (space-y-2)app/static/js/record-list.js— loading skeleton matches card styleapp/static/css/input.css— if adding accent/border utility classesConstraints
.swipe-containerwhich setsborder-radius: 1remandbackground-color: oklch(var(--b1))— card styling must stay compatibleCOLOR— could be used as a subtle left-border accent to further differentiate