Skip to content

fix(web): keep pinned headers below the impersonation banner - #4777

Merged
Quick104 merged 5 commits into
mainfrom
fix/issue-4714-impersonation-banner-header
Nov 21, 2026
Merged

Quick104 merged 5 commits into
mainfrom
fix/issue-4714-impersonation-banner-header

Conversation

@Quick104

@Quick104 Quick104 commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Closes #4714
Related issue: N/A
Validation tasks: none

Other clients: Apple N/A (no impersonation banner); Android N/A (no impersonation banner); Roku N/A (no impersonation banner)

While an admin views the web app as another user, the "Viewing as" banner and the headers pinned to the top of the screen all stick at the same spot, and the banner sits on top. Once the page scrolls, the banner covers the phone header, so a tap on its menu button lands on the banner. The library tabs on desktop, the Taste Seed and ebook reader headers, and a few sticky side columns get covered the same way. In the admin area, which the server Owner can reach by viewing as an admin account, the desktop activity button sits under the banner's End session button, so clicking it ends the session. This change pins each of those below the banner. Sessions without impersonation don't change.

Approach

The banner's height isn't fixed, so the banner measures itself and publishes the result on the root element as --impersonation-banner-height, which defaults to 0px. Everything pinned near the top of the viewport adds that variable to its offset:

  • both phone headers and both desktop activity buttons
  • the library tabs and the calendar week strip
  • the Taste Seed and ebook reader headers
  • the book detail side column and the Interface settings preview
  • the library letter rail, whose top edge moves down while its bottom edge stays where it is without a banner

The ebook reader's page also subtracts the banner from its height, so the reader still fits the screen, and the back button on its not-found and no-files screens now sits below the banner. The root's scroll-padding-top uses the same variable, which puts skip links and other in-page jumps below the banner without changing each target. The banner also carries data-sticky-header, so the item grid's jump offset and the dashboard's drag auto-scroll count it.

The measuring hook is the one the playback bars already used. It's renamed from usePlaybackBarHeight to useRootHeightProperty, takes the CSS property name, and adds an element's bottom inset only when the caller asks for it; the two playback bars still do.

Validation

  • Live on an isolated Silo dev deployment (backend: main at 7f3a32e, clean build), with the base and fixed frontends served from local Vite against the same API. The build host was out of disk space and Docker network pools, so the sandbox couldn't build an image for this branch; the change is web-only.
  • Reproduced the issue's steps at 393 px on main: banner 0–49 px, header 0–66 px, and a tap on the menu button lands on the banner. After the fix the header sits at 49–115 px and the menu opens.
  • Also checked 320 px, tablet, a phone on its side, 1440 and 1920 px, the Owner viewing as an admin (phone header and the desktop activity button), and ending the session (the offsets return to 0px). Book detail pages and the ebook reader weren't checked live because the sandbox has no book library; their compiled CSS was checked instead, and the reader's page geometry was checked in Chromium with a static page that uses its offsets (with a 49 px banner the page now overflows by the same 2 px it does without one, down from 49 px).
  • Without impersonation the variable and the scroll padding are 0px and the header still pins at 0–66 px.
  • Typecheck, pnpm run lint (no errors), format:check, build, and budget:check pass. Vitest for the touched components and the CSS contract test pass.
  • The full web suite has 29 failures in player, auth, and request-deadline tests that fail the same way on main in this environment (Node 26, no localStorage), plus two timing tests that pass on rerun on both branches.
  • No Go changes; make lint-changed has nothing to check.

Evidence

Evidence: https://evidence.siloserver.org/r/silo-server/issue-4714/

Surface and build: web app and web admin at 320, 393, 834, 852 x 393, 1440, and 1920 px; backend 7f3a32e, frontend main at aa06983 (before) and this branch (after).

Risks

None identified for normal sessions: every new offset is 0px when nobody is being impersonated. The playback bars publish the same properties with the same measurement as before.

Follow-up: #4787 (a playback bar covers the letter rail and the scroll-to-top button; older than this PR, and it changes the same rail classes, so it follows this merge).

Checklist

  • I read and can explain the complete diff.
  • This pull request addresses one concern.
  • Each test this pull request adds meets "Decide what to test" in CONTRIBUTING.md.
  • The Evidence section shows every change a user can see, or how I checked a change nobody sees.

Council review

Plan round (one round, on the unfixed code): Sol (gpt-6.2-sol, xhigh), Opus (claude-opus-5-5, high), and Gemini (gemini-4-neon, xhigh); the plan briefs asked for verdicts, not scores. It changed the plan in three ways. It added the book detail side column, the landscape letter rail, the desktop activity buttons, and the Interface settings preview, which the banner already covered or the moved headers would have covered (all three members). It left the calendar's hide-on-scroll offset alone, and it shared the playback bars' hook instead of copying it (Opus).

Background review: 2 rounds, last reviewed 53b7e1f

Member Round 1 Round 2
Sol (gpt-6.2-sol, xhigh) 7/10 8/10
Opus (claude-opus-5-5, high) 9/10 9/10
Gemini (gemini-4-neon, xhigh) 8/10 running

Round 1 fixed: the reader's wrapper (f26394d; Sol and Gemini, also CodeRabbit), the letter rail's bottom edge on tall windows (ac84193; Sol), and the reader's back button on its error screens (53b7e1f; Gemini). Answered: PageBack floating at lg (Gemini) never renders there today. The older playback-bar overlap that Sol's second finding uncovered is #4787. Round 2 marked every round-1 finding resolved. Fixed: the reader wrapper's leftover minimum height never applied, so it's gone (8c15c2f; Opus). Answered: in very short windows at the largest text size, the banner leaves the letter rail's rows tighter (Sol); the rail has to fit between the now-visible header and the scroll-to-top button, and a different rail layout for that case is outside this fix.

Visual review: 1 round

Member Round 1
Sol better, 7/10
Opus better, 7/10
Gemini better, 7/10

Fixed: none needed. Answered: the translucent headers, the bare activity icon, the header pinning flush under the banner, and the drawer covering the banner all match how those elements look without impersonation; the landscape letter rail shrinks so it still clears the scroll-to-top button, and its active letter changes because the row hidden under the banner now counts as hidden.

Code review (xhigh, three finders, verifiers, and a sweep): the reader's height ignored the banner, so its toolbar covered the reading text once scrolled (fixed; CodeRabbit then caught that the reader's wrapper still needed it too, fixed in f26394d), two comments went stale (fixed), and the playback hook's bottom inset is now opt-in instead of relying on a sticky element's bottom: auto (hardening). Candidates on admin pages' lg:sticky columns were refuted: the admin wrapper is a scroll container from lg, so they never pin.

AI Disclosure

  • Harness: Claude Code in T3 Code
  • Tool(s): Claude Code, T3 Code (delegated reviews), Codex, Antigravity, headless Chromium via Playwright (captures) against a Silo dev deployment
  • Model(s): claude-opus-5-5 (implementation and code review), gpt-6.2-sol, claude-opus-5-5, gemini-4-neon (council reviews), claude-sonnet-5-5 (review subagents)
  • Involvement: Fully AI-generated, human verified
  • Adversarial review: see Council review above. Code review ran at xhigh on the final diff (three finders, a validation agent, verifiers, and a sweep).

🤖 Generated with Claude Code

While an admin views the app as another user, the banner and every
header pinned to the top of the viewport stuck at `top: 0`, so the
banner covered the header and took its taps.

The banner now publishes its measured height on the root as
`--impersonation-banner-height` (0px without a banner), and the phone
headers, library tabs, calendar week strip, Taste Seed and reader
headers, book detail side column, settings preview, letter rail, and
desktop activity controls add it to their offsets; the ebook reader's
body subtracts it from its height. The root's scroll padding uses it so
in-page jumps land below the banner, and the banner opts into
`data-sticky-header` so ItemGrid and the dashboard's drag auto-scroll
count it. The playback bars' height hook now takes the property name,
with their bottom inset as an explicit option, so the banner shares it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@silo-triage silo-triage Bot added the size/M 50–199 added + deleted lines (all files); change volume, not priority. label Nov 21, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-21T02:46:52.444856Z ac84193 New commits
🔒 Security Review ✅ Completed 2026-11-21T03:03:47.354513Z 8c15c2f New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@silo-kody

silo-kody Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

@silo-triage silo-triage Bot added bug Something isn't working impact: usability Core flow broken or severely blocked priority: P2 Limited scope, workaround exists, or polish labels Nov 21, 2026
@coderabbitai

coderabbitai Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The impersonation banner publishes its measured height as a CSS custom property. Sticky layouts, scroll padding, and selected available-height calculations account for that height. Playback bars use a generalized root-height hook.

Changes: Banner-aware layout

Layer / File(s) Summary
Publish banner height
web/src/hooks/useRootHeightProperty.ts, web/src/components/ImpersonationBanner.tsx, web/src/app.css
The height hook accepts a CSS property and an optional bottom inset. The banner uses the hook to publish its height. Root styles define the property as 0px by default and use it for scroll padding.
Apply banner offsets
web/src/app.css, web/src/components/AdminLayout.tsx, web/src/components/Layout.tsx, web/src/components/ItemGrid.tsx, web/src/components/admin/dashboard/dragAutoScroll.ts, web/src/components/catalog/LetterBar.tsx, web/src/pages/Calendar.tsx, web/src/pages/EbookReader.tsx, web/src/pages/TasteSeed.tsx, web/src/pages/audiobooks/audiobooks.css, web/src/pages/settings/InterfaceSettings.tsx
Sticky headers, navigators, side columns, and previews now account for the banner height in their offsets or available-height calculations.
Update playback measurements
web/src/pages/audiobooks/player/MiniBar.tsx, web/src/playback/WatchPlaybackChrome.tsx
The audiobook and watch playback bars use the generalized height hook with their existing CSS properties and bottom-inset measurement.

Estimated code review effort: 2 (Simple) | ~15 minutes

Change: Bug fix · Severity of issue fixed: Medium

Possibly related issues

  • Silo-Server/silo-server#4787 — This PR changes the letter rail’s top and height to account for the impersonation banner, but does not add clearance for the playback bar described in the issue.

Possibly related PRs

  • Silo-Server/silo-server#4784 — Both PRs affect scroll positioning in the main app. The fixed scroll margin in #4784 may interact with this PR’s root scroll padding and banner height.

Suggested reviewers: rhainland, blurbery

Merge Risk: Minimal · up to ac841

This web-only change keeps pinned headers and rails below the variable-height impersonation banner. Sessions without impersonation keep zero offsets and their previous behavior. No remaining merge-blocking risk was identified.

Security architecture risk: Minimal · up to ac841

The inspected changes keep pinned controls clear of the impersonation banner without changing account authority or data access. No introduced security, ownership, or recovery risk was established.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "fix(web): keep pinned headers below the impersonation banner" matches the main change: the impersonation banner publishes its height as --impersonation-banner-height, and pinned headers and…
Linked Issues check Passed Issue #4714 requires the phone header to pin below the impersonation banner while impersonating. Evidence at head ac84193:
- web/src/hooks/useRootHeightProperty.ts (read directly) measures the elem…
Out of Scope Changes check Passed Changes beyond the phone header apply the same offset to other elements pinned near the top of the viewport. The issue's technical notes ask for in-page scroll margins to clear the banner, so root scr…
Description check Passed The description is specific and related to the changeset. It explains that the impersonation banner covers pinned headers and sticky elements, and that the fix publishes the banner height as --imperso…
Full details: Title check

Explanation

The title "fix(web): keep pinned headers below the impersonation banner" matches the main change: the impersonation banner publishes its height as --impersonation-banner-height, and pinned headers and other sticky offsets now account for it. The title is specific and concise.

Full details: Linked Issues check

Explanation

Issue #4714 requires the phone header to pin below the impersonation banner while impersonating. Evidence at head ac84193:

  • web/src/hooks/useRootHeightProperty.ts (read directly) measures the element, sets the property on document.documentElement, and removes it on unmount. The bottom inset is added only when includeBottomInset is true. This matches the issue's technical note on publishing the measured height.
  • The raw summary states that ImpersonationBanner.tsx attaches useRootHeightProperty("--impersonation-banner-height") and that Layout.tsx and AdminLayout.tsx add that variable to their mobile header top offsets. I could not confirm the header class lines. The Layout.tsx diff was unavailable, and the file read was truncated before the header markup. The summary and the author's live measurements (header moves from 0-66 px to 49-115 px at 393 px, and the menu opens) are the only evidence for the offset.
  • With no impersonation, the variable defaults to 0px, so the layout is unchanged.
    The admin-area case depends on fix(web): keep the phone admin header pinned while admin pages scroll #4709. Whether that header is present at the merge base is not established. This does not block the main-app requirement. No coding requirement in #4714 is shown to be unmet. The issue does not require automated tests.
Full details: Out of Scope Changes check

Explanation

Changes beyond the phone header apply the same offset to other elements pinned near the top of the viewport. The issue's technical notes ask for in-page scroll margins to clear the banner, so root scroll-padding-top is in scope. Each group relates to the same root cause:

  • Desktop activity buttons, library tabs, letter rail, calendar week strip, Taste Seed and ebook reader headers, audiobook side column, and Interface settings preview.
  • ItemGrid.tsx and dragAutoScroll.ts changes update documentation and use data-sticky-header so existing jump and auto-scroll offsets account for the banner.
  • useRootHeightProperty replaces usePlaybackBarHeight, and MiniBar.tsx and WatchPlaybackChrome.tsx are updated to match. The playback bars keep their bottom-inset behavior through the opt-in option, which I verified in the hook source.
    No change was found that is unrelated to the banner offset. The LetterBar active-letter change is a disclosed side effect of the shorter rail.
Full details: Description check

Explanation

The description is specific and related to the changeset. It explains that the impersonation banner covers pinned headers and sticky elements, and that the fix publishes the banner height as --impersonation-banner-height. It lists the affected components (phone headers, desktop activity buttons, library tabs, Taste Seed and ebook reader headers, side columns, letter rail), the renamed hook useRootHeightProperty, validation steps, and risks. This matches the raw summary of changed files.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: fa2ccc91-c46d-4604-9037-f2217e762758
Commits

Reviewing files that changed from the base of the PR and between bfa7c90 and ac84193.

Files selected for processing: 2

  • web/src/components/catalog/LetterBar.tsx
  • web/src/pages/EbookReader.tsx

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 1

Review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: fd3b2d48-eada-4431-beeb-064a101621fc
Commits

Reviewing files that changed from the base of the PR and between 5537df4 and bfa7c90.

Files selected for processing: 15

  • web/src/app.css
  • web/src/components/AdminLayout.tsx
  • web/src/components/ImpersonationBanner.tsx
  • web/src/components/ItemGrid.tsx
  • web/src/components/Layout.tsx
  • web/src/components/admin/dashboard/dragAutoScroll.ts
  • web/src/components/catalog/LetterBar.tsx
  • web/src/hooks/useRootHeightProperty.ts
  • web/src/pages/Calendar.tsx
  • web/src/pages/EbookReader.tsx
  • web/src/pages/TasteSeed.tsx
  • web/src/pages/audiobooks/audiobooks.css
  • web/src/pages/audiobooks/player/MiniBar.tsx
  • web/src/pages/settings/InterfaceSettings.tsx
  • web/src/playback/WatchPlaybackChrome.tsx

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.

Comment thread web/src/pages/EbookReader.tsx Resolved

@Quick104 Quick104 left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Adversarial review (gpt-6.2-sol, reviewed bfa7c90)

Two regressions reproduced in Chromium using the base and head layout rules.

AI disclosure: Review by gpt-6.2-sol using Codex in T3 Code.

Comment thread web/src/pages/EbookReader.tsx Resolved
The reader's body already subtracted the banner, but its wrapper kept a
full-viewport minimum height, so the page still scrolled by the banner's
height and the pinned toolbar covered the top of the reading surface.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@silo-kody

silo-kody Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

…anner

With the rail capped at 42rem, the banner offset moved its center down
by half the banner's height, so its bottom edge moved too and could
reach under a playback bar. The center now moves by half of what the
rail's height loses, which keeps the bottom edge exactly where it is
without a banner at every viewport height.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@silo-kody

silo-kody Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

@Quick104 Quick104 left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Adversarial review (gemini-4-neon, reviewed bfa7c90)

Checked the diff and the remaining sticky/fixed elements and standalone routes against the claims. The useRootHeightProperty lifecycle, data-sticky-header readers (ItemGrid, dragAutoScroll), :root scroll-padding-top, LetterBar geometry, Calendar auto-hide coverage, and admin lg:overflow-x-hidden inert-sticky claims all hold. One inline finding (G1) is attached to web/src/pages/EbookReader.tsx:872; two findings outside the diff hunks follow.

G2 — Medium — web/src/pages/EbookReader.tsx:646 and web/src/pages/EbookReader.tsx:690

  • Trigger: Open /reader/ebook/:contentId while impersonating when the item is missing/not an ebook (error || !item || item.type !== "ebook") or has no files (!selectedFile).
  • Impact: Both fallback views render <PageBack /> (absolute top-4 start-2 sm:top-6 z-20, 32 px tall) inside <div className="page-shell py-10">. Neither .page-shell nor #root sets position: relative, and EbookReader renders outside Layout, so <PageBack /> anchors to viewport y = 0 (16–48px below sm, 24–56px at sm+). With --app-sidebar-offset: 0px, the 0–49px z-50 ImpersonationBanner completely covers the back button below sm and covers 25 of its 32 px at sm+, intercepting clicks on the only navigation control on those screens.
  • Evidence: web/src/App.tsx:539-545 renders EbookReader directly below AppChrome outside Layout; web/src/app.css:2117-2122 (.page-shell) and web/src/app.css:2611-2613 (#root) leave position: static; web/src/components/PageBack.tsx:33,51 positions PageBack at absolute top-4 start-2 sm:top-6 z-20.
  • Suggested repair: Add relative to both fallback containers (className="page-shell relative py-10" on lines 646 and 690), matching the other <PageBack /> containers (PersonDetail.tsx:147, EbookContent.tsx:201).

G3 — Low (latent) — web/src/components/PageBack.tsx:31-33

  • Trigger: Render <PageBack floating /> at lg+ (>= 64rem) while impersonating.
  • Impact: The floating branch pins the button with top-4 sm:top-6 lg:fixed lg:start-[268px] (z-20), which puts it at y = 24–56px inside the 260px sidebar offset — 25 of its 32 px sit behind the 0–49px z-50 ImpersonationBanner. This is latent today because the only current floating caller (SettingsIndex in web/src/pages/SettingsLayout.tsx:83) redirects away whenever (min-width: 64rem) matches, but the exported floating prop stays broken for any lg+ consumer.
  • Evidence: web/src/components/PageBack.tsx:20-33 documents floating as viewport-pinning on lg+ without adding var(--impersonation-banner-height) to top; web/src/pages/SettingsLayout.tsx:45-51,83 is the sole current caller.
  • Suggested repair: Add lg:top-[calc(1.5rem+var(--impersonation-banner-height))] to the floating branch on line 32 (or drop the unused lg:fixed mode).

AI-assisted review by Gemini 4 Neon (gemini-4-neon) via Antigravity in T3 Code.

Comment thread web/src/pages/EbookReader.tsx Resolved
The reader's not-found and no-files screens render outside Layout, and
their wrapper wasn't positioned, so the back button's absolute offset
measured from the top of the document, where the banner sits. Making
the wrapper relative, as other pages with a back button do, puts it
below the banner and leaves it where it was without one.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@silo-kody

silo-kody Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

@Quick104

Copy link
Copy Markdown
Contributor Author

On the two findings in the Gemini review body:

  • G2 (the reader's not-found and no-files screens): fixed in 53b7e1f. Both wrappers are now page-shell relative, like PersonDetail, so the back button measures from the wrapper, which starts below the banner. In Chromium at 393 px with a 49 px banner, the button moved from 16–48 px (a click hit the banner) to 65–97 px (the click reaches the button). Without a banner the wrapper starts at 0, so the button stays where it was.
  • G3 (PageBack floating at lg): no change. Its only caller, Settings' index, redirects away at lg and up, so the fixed mode never renders there. If a page starts using it at lg, that change should add the banner offset.

🤖 Claude Code in T3 Code (claude-opus-5-5)

@Quick104 Quick104 left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Adversarial review (claude-opus-5-5, reviewed 53b7e1f)

The letter rail formula is correct. The bottom edge works out to 50% + 2rem + min(42rem, 100dvh - 14rem)/2 whatever the banner height, and in the short-viewport variant to 100dvh - 4rem. The relative wrappers on the two reader fallback screens fix the back button's position. One nit is inline.

AI disclosure: written by Claude Opus 5.5 (claude-opus-5-5) in Claude Code.

Comment thread web/src/pages/EbookReader.tsx Resolved
The reader's header and body always add up to more than the viewport
minus the banner, so the wrapper's banner-aware minimum height never
applied. The body's own height already subtracts the banner; the
minimum that mattered was the old full-viewport one, now removed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@silo-kody

silo-kody Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

@Quick104
Quick104 merged commit 6210a59 into main Nov 21, 2026
20 checks passed
@Quick104
Quick104 deleted the fix/issue-4714-impersonation-banner-header branch November 21, 2026 03:09
Quick104 added a commit that referenced this pull request Nov 21, 2026
Main now publishes the impersonation banner's height and moves the
desktop activity control below it (#4777). Restore's summary and
Arrange's preview start 4rem below the banner, and their height caps
subtract it, so they stay clear of the control; Activity's column
header pins below the banner instead of under it. Without a banner the
variable is 0px and nothing moves.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Quick104 added a commit that referenced this pull request Nov 21, 2026
* fix(web): keep sticky panels in view on desktop admin pages

From 1024 px the admin shell's root wrapper used `overflow-x-hidden`,
which makes it a scroll container that never scrolls, so the sticky
elements inside it scrolled away with the page: Activity's column
header, Restore's summary, and Collections > Arrange's viewer preview.
The wrapper now uses `overflow-x-clip` at every width, as it already
did below 1024 px.

Restore's summary and Arrange's preview stick at 4rem, below the fixed
server-activity control. Their height is capped to the window, less
any background playback bar and the page padding below their grid, so
the end of a long page can't push them back under the control. A
taller panel scrolls inside itself: Restore keeps Review pinned at its
foot, and Arrange's preview takes keyboard focus where it is pinned.
Without the cap, Arrange's preview, taller than the board once a
library has a starter pack, would never stick.

Restore's section jumps land level with the pinned summary, and
Review, now reachable deep in a long chooser, opens the review step at
the top of the page.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(web): keep focus and Review clear of pinned admin chrome

On Activity, a row control focused while under the pinned column
header (Shift+Tab back up the table) stayed hidden behind it. Row
controls now carry a scroll margin, so focus scrolls them clear; a
root scroll-padding would also scroll the page when the header's own
sort buttons take focus.

On Restore, a long selection notice in a short window with a
background playback bar could push Review out of the capped summary
and under the bar. The summary now gives up its height first, and the
notice scrolls on its own, so Review keeps its row.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(web): stop a Restore notice that fits from scrolling by a pixel

The summary's shrink weight of 999 still took a fraction of a pixel
from the footer, so a notice that fit became a scroll box with 1 px of
travel. A weight of 100000 keeps the footer's share under a layout
unit while a notice too long for the window still scrolls.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(web): keep pinned admin panels below the impersonation banner

Main now publishes the impersonation banner's height and moves the
desktop activity control below it (#4777). Restore's summary and
Arrange's preview start 4rem below the banner, and their height caps
subtract it, so they stay clear of the control; Activity's column
header pins below the banner instead of under it. Without a banner the
variable is 0px and nothing moves.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(web): land a focused Activity row clear of the activity control

Row controls scrolled into focus under Activity's pinned header landed
3rem down, where the shell's fixed activity control still covered the
top corner of a row's end-side actions button. A 4rem scroll margin,
the line admin content starts on, clears both.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(web): scope Activity's focus margin to the table and cap a long notice

From review: the rows' scroll margin applied from lg, so in the stacked
layout (1024 px up to the table's container width), where no header is
pinned, focusing a control near the top still scrolled the page. It now
follows the table layout's container query, and it also covers the
FFmpeg log box, which Chromium and Firefox let the keyboard focus when
it overflows.

On Restore, a very long selection notice made the summary give up all
of its height even in a normal window. The notice now scrolls within
8rem, and only shrinks further in a window too short for both.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(web): let the keyboard scroll a Restore notice that overflows

From review: since the selection notice scrolls within 8rem, a long
one overflows in a normal window, and WebKit doesn't let the keyboard
focus a scroll box on its own, so its keyboard users couldn't read the
rest. The notice now takes focus, with an outline, only while it
overflows; one that fits adds no tab stop.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working impact: usability Core flow broken or severely blocked priority: P2 Limited scope, workaround exists, or polish size/M 50–199 added + deleted lines (all files); change volume, not priority.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug] The impersonation banner covers the pinned phone header

1 participant