Skip to content

feat: update article outline visibility and styling in SingleContent - #1942

Merged
johan-bell merged 41 commits into
mainfrom
1857-app-reading-bar-on-single-contents-topbar
Sep 4, 2026
Merged

feat: update article outline visibility and styling in SingleContent#1942
johan-bell merged 41 commits into
mainfrom
1857-app-reading-bar-on-single-contents-topbar

Conversation

@MrDirkelz

Copy link
Copy Markdown
Collaborator

No description provided.

@MrDirkelz MrDirkelz linked an issue Aug 25, 2026 that may be closed by this pull request
@johan-bell
johan-bell force-pushed the 1857-app-reading-bar-on-single-contents-topbar branch from 83cf230 to 5bedcd3 Compare August 26, 2026 09:35

@MrDirkelz MrDirkelz left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good to me

MrDirkelz and others added 27 commits September 1, 2026 08:51
- Mobile: renders a thin progress bar above the bottom nav via a
  teleported element in BasePage, driven by a new rAF-throttled scroll
  tracker in useReadingProgressTracker.
- Desktop: adds a left-gutter ArticleOutline (heading nav + progress
  rail) and reflows the article into a 3-column grid to make room for
  it.
Introduces ArticleOutline.vue for SingleContent pages: scans h2/h3
headings from the rendered article, generates stable ids for
scroll-to-heading links, tracks the active section on scroll, and
renders a sticky side rail whose fill reflects overall reading
progress.
The pill now opens as a 'Continue where you left off' offer when a saved
position exists, then becomes the chapter dropdown on the same track. The
track shows the dwell-confirmed reading progress instead of a separate
scroll position, so the pill, the resume offer and the homepage Continue
row all report the same number.

Removes ContinueReadingPrompt, the scroll-progress value in the tracker,
and the sidebar width variable that only served the old prompt.
@johan-bell
johan-bell force-pushed the 1857-app-reading-bar-on-single-contents-topbar branch from fa1204d to 19976a7 Compare September 1, 2026 06:51

@ivanslabbert ivanslabbert left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved with comments

<template>
<span
v-if="showResumeOffer"
class="relative flex max-w-full items-center rounded-lg bg-zinc-100/70 shadow-md ring-1 ring-zinc-900/10 backdrop-blur-sm dark:bg-slate-700/70 dark:ring-white/10"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do not use blur, only transparency. Blur is resource heavy, and our target devices are often budget devices.

</span>
<span
v-else-if="visible && !headings.length"
class="relative flex max-w-full items-center overflow-hidden rounded-lg bg-zinc-100/70 px-3.5 pb-2.5 pt-1.5 text-sm text-zinc-800 shadow-md ring-1 ring-zinc-900/10 backdrop-blur-sm dark:bg-slate-700/70 dark:text-slate-50 dark:ring-white/10"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See previous comment

>
<template #trigger>
<span
class="relative flex max-w-full items-center gap-1.5 overflow-hidden rounded-lg bg-zinc-100/70 px-3.5 pb-2.5 pt-1.5 text-sm text-zinc-800 shadow-md ring-1 ring-zinc-900/10 backdrop-blur-sm hover:bg-zinc-200 dark:bg-slate-700/70 dark:text-slate-50 dark:ring-white/10 dark:hover:bg-slate-600"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see previous comment

johan-bell and others added 2 commits September 4, 2026 16:50
…on-single-contents-topbar

# Conflicts:
#	app/src/pages/SingleContent/SingleContent.vue
Backdrop blur is expensive to composite on the budget devices the app targets.
The translucent backgrounds carry the effect on their own.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@johan-bell
johan-bell merged commit 25ad30c into main Sep 4, 2026
5 checks passed
@johan-bell
johan-bell deleted the 1857-app-reading-bar-on-single-contents-topbar branch September 4, 2026 14:57
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.

APP: Reading progress indication on single content's topbar

3 participants