Skip to content

library UX polish 3: sticky offset + delete danger zone#220

Merged
mrviduus merged 1 commit into
mainfrom
feat/library-ux-polish-3
May 5, 2026
Merged

library UX polish 3: sticky offset + delete danger zone#220
mrviduus merged 1 commit into
mainfrom
feat/library-ux-polish-3

Conversation

@mrviduus
Copy link
Copy Markdown
Owner

@mrviduus mrviduus commented May 5, 2026

Sticky tabs at top:80 (matches site-header height, no overlap during collapse). Delete moved out of primary action row to a small text-link in a danger zone below chapters.

…lete

Two more from the audit:

1. Sticky status tabs were anchored at top:64 but .site-header is
   80px until it collapses on scroll. The 16px overlap (transient
   during the collapse animation) was a real visual glitch. Pinning
   to top:80 means a small 16px gap when the header is collapsed but
   no overlap ever — better than the inverse.

2. "Delete Book" was a big red-outlined pill in the primary action
   row next to Continue Reading / Mark as read — easy to misclick on
   a book the user just spent time uploading. Apple HIG says
   destructive actions should sit far from the primary path and look
   understated. Moved it out of the action row, into a "danger zone"
   strip below the chapters list, rendered as a small underlined
   text-link styled in red rather than a pill button. The confirm
   dialog stays.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@mrviduus mrviduus merged commit 123620b into main May 5, 2026
1 check passed
mrviduus added a commit that referenced this pull request May 5, 2026
…con + CHANGELOG (#221)

User audit on the icon "+" affordance:
- Hover state was just a faint border colour change — no signal what the
  button does until you click it.
- "Add to collection" popover only listed existing collections; creating
  a new one meant closing it, walking back to the sidebar, typing the
  name, then re-opening to assign. Five clicks for a one-step intent.
- Big "Delete Book" outline-pill in the danger zone (after #220) was
  better than the primary-row pill but still louder than the circular
  "+" sitting nearby — visual hierarchy mismatch.

Fixes:

- Custom CSS tooltip on icon buttons (.add-to-collection-button--icon
  and .user-book-detail__delete-icon) reads aria-label, shows after a
  250ms hover delay (instant feel without flickering), styled to match
  the dark/light theme. Skips the 1–2s native title delay entirely.
- Popover gains an inline "+ New collection" row that swaps to a small
  text input + Add button on click, creates the collection AND adds
  the current book in one round-trip, then closes. Apple Notes pattern.
- Delete is now a circular trash icon (lucide-style svg, hand-rolled to
  avoid pulling another dependency) sized 36×36 to match the "+" icon
  on the page. Same custom tooltip ("Delete this book"). Same red
  accent. Confirm dialog stays.

CHANGELOG.md updated for everything since 2026-04-26 (PR #203 onward —
17 PRs of library + mobile + cleanup work that was missing entries).

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant