Skip to content

fix(web): show the Featured hero arrows on wide touch screens - #4510

Merged
Quick104 merged 1 commit into
Silo-Server:mainfrom
Rhainland:fix/327-hero-arrows-touch
Nov 18, 2026
Merged

Quick104 merged 1 commit into
Silo-Server:mainfrom
Rhainland:fix/327-hero-arrows-touch

Conversation

@Rhainland

@Rhainland Rhainland commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Related issue: #327
Validation tasks: none

Other clients: Apple N/A (web-only styling); Android N/A (web-only styling); Roku N/A (web-only styling)

On a touch screen 1024px or wider, such as an iPad in landscape, the previous and next arrows on the home page's Featured hero never appear. At that width the arrows start hidden and only fade in when a mouse hovers the hero, and a touch screen never hovers. The only way to change slides is to wait for autoplay, and with reduced motion on, autoplay is off too. iPad portrait works because the arrows stay visible below 1024px.

This change keeps the arrows visible on touch input at every width. With a mouse they still stay hidden until the hero is hovered.

The issue also asks for swipe gestures on the hero. That is a new feature and is not part of this change, so #327 stays open for it.

Approach

The 1024px-and-up hide now applies only when the app has seen a pointer that can hover. It uses the same data-fine-pointer attribute (web/src/lib/pointerCapability.ts) that the app's hover: variant already uses. A plain @media (hover: hover) query would be wrong on the Windows hybrid machines that attribute was added for. The selector sits inside :where(), as the comment in web/src/app.css requires, so group-hover and hover still win over it.

On a hybrid laptop, the last pointer used decides: after a touch the arrows stay visible, and after the mouse moves they go back to showing on hover.

Validation

  • Local build of the production web bundle with a Featured row of three movies, in headless Chromium. Same data before and after.
    • Touch emulation (no hover, coarse pointer) at 1180px and 1440px: arrow opacity was 0 before the change and is 0.8 after. Tapping the next arrow advances the slide.
    • Mouse at 1440px: 0 at rest and 0.9 on hover, unchanged.
    • Phone at 390px: 0.6, unchanged.
  • Web: pnpm run lint, format:check, build, budget:check and make test-web pass.
  • make verify-local-paths, verify-size-ratchet, verify-bidi and verify-case-collisions pass. The Go half of the gate was not run because no Go code changed.
  • No test added: this is a styling change, and jsdom does not compile Tailwind, so a unit test could only match class strings.

Evidence

Evidence: https://evidence.siloserver.org/r/silo-server/pr-4510/

Surface and build: web app home page, Featured hero; touch at 1180px and 1440px, mouse desktop at 1440px, phone at 390px.

Risks

A touch tablet with a paired mouse, trackpad or stylus hides the arrows again after that device is used, until the next finger touch. This is how every hover: style in the app already behaves.

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.

AI Disclosure

  • Harness: Claude Code (via T3 Code); Codex CLI for code review
  • Tool(s): Claude Code, Codex CLI, Playwright (headless Chromium)
  • Model(s): claude-opus-5-5; gpt-6.2-sol, gpt-6.2-astra, claude-fable-5-2 (code review)
  • Involvement: Fully AI-generated, human verified
  • Adversarial review: a four-reviewer multi-model review of the full diff, covering correctness, repo standards and the issue's spec. No correctness findings. Two reviewers flagged the identical class strings on the two buttons; that duplication was already there before this change, so nothing changed. The spec notes were that swipe support is left out (stated above) and that a pen or paired mouse on a tablet hides the arrows until the next touch (see Risks).

At 1024px and wider the hero's previous/next arrows started hidden and
only appeared on hover, so on a touch screen in that range (an iPad in
landscape) they never appeared. Hide them at rest only when the observed
pointer can hover, the same data-fine-pointer gate the app's hover
styles use.
@silo-triage silo-triage Bot added the size/S 0–49 added + deleted lines (all files); change volume, not priority. label Nov 18, 2026
@coderabbitai

coderabbitai Bot commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

This organization requires a seat for paid usage-based reviews, including automatic and on-demand reviews. Ask an admin to assign a seat or enable paid usage-based reviews for users without a seat in Billing.

Next included review available in 9 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 4 included reviews currently available.

Learn how review limits work.

Review configuration:

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: e0129202-56ad-49fc-ad87-742eca986578
Commits

Reviewing files that changed from the base of the PR and between e8de111 and dbdb625.

Files selected for processing: 1

  • web/src/components/HeroBanner.tsx
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@silo-kody

silo-kody Bot commented Nov 18, 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 ❌

type="button"
onClick={prev}
className="glass-subtle absolute start-3 top-1/2 z-20 -translate-y-1/2 rounded-full p-1.5 opacity-60 transition-opacity duration-(--duration-fast) hover:opacity-100 sm:start-5 sm:p-2 sm:opacity-80 lg:opacity-0 lg:group-hover:opacity-90"
className="glass-subtle absolute start-3 top-1/2 z-20 -translate-y-1/2 rounded-full p-1.5 opacity-60 transition-opacity duration-(--duration-fast) hover:opacity-100 sm:start-5 sm:p-2 sm:opacity-80 lg:group-hover:opacity-90 lg:[:where(:root[data-fine-pointer=true])_&]:opacity-0"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

kody code-review Bug medium

Non-hovering pen input hides the navigation arrows

On wide touchscreens, a non-hovering pen press sets data-fine-pointer to true, making both arrows disappear. Distinguish hover-capable pointers from non-hovering pens before hiding the arrows.

Prompt for LLM
File web/src/components/HeroBanner.tsx, line 425:

Non-hovering pen input hides the navigation arrows

A pen press sets `data-fine-pointer` to `true` even on devices whose pen cannot hover, so both arrows disappear after the user interacts with a wide touchscreen using that pen. Distinguish hover-capable pointers from non-hovering pens before applying the hidden state.

Talk to Kody by mentioning @kody

Was this suggestion helpful? React with 👍 or 👎 to help Kody learn from this interaction.

​

​

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.

The mechanism is right: initPointerCapability treats a pen pointer like a mouse and sets data-fine-pointer to true, so on a 1024px+ screen a pen that can't hover leaves the arrows hidden until the hero is hovered.

That is also what happens on main today, where the arrows are hidden on lg for every input. I checked the compiled CSS for both class lists in Chromium at 1180px: with the flag true both read opacity 0 at rest and 0.9 on hover, so pen users see no change from this PR. The PR names this case under Risks. Whether a pen that can't hover should count as a fine pointer is an app-wide question for pointerCapability.ts, which this PR doesn't touch, so nothing changes here.

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Agreed: this is a pre-existing limitation, not a regression introduced by the PR. The evidence you describe shows that non-hovering pen users get the same arrow behavior before and after the change, and the PR explicitly documents the limitation.

The original suggestion identifies a real gap in pen accessibility, but it does not need to block this focused improvement for touch users. It would be reasonable to track non-hovering pen behavior separately, whether the eventual fix is local to the hero or part of the app-wide pointer-capability handling.

@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 18, 2026
@Quick104

Copy link
Copy Markdown
Contributor

Review summary

Reviewed head: dbdb625f8. No defects found, and no commits were pushed.

Fit: 9/10 · Readiness: 9/10 — ready

Fit: this fixes a real gap in the home page on wide touch screens, where the hero couldn't be navigated at all with reduced motion on. It reuses the app's existing observed-pointer flag rather than adding a new mechanism or a setting.

Readiness: the change is two class lists, and the compiled CSS does what the description says. I compiled both the base and head class lists with the repository's Tailwind and app.css and read the computed opacity in Chromium at 1180px:

Input (data-fine-pointer) Base, at rest Head, at rest Base, hero hovered Head, hero hovered
touch (false) 0 0.8 0 0.8
not set yet 0 0.8 n/a n/a
mouse (true) 0 0 0.9 0.9

The new hide compiles to :where(:root[data-fine-pointer=true]) & inside the lg media query, with specificity 0-1-0. lg:group-hover:opacity-90 and hover:opacity-100 compile at 0-2-0, so they still win over it. On the base, a touch tap can't show the arrows even through emulated hover, because group-hover uses the same flag. The author reports matching results from the built app on the PR's evidence page. No test was added, which fits a styling-only change that jsdom can't evaluate.

Other feedback

  • Kody's pen comment: the mechanism is real, but pen users see what they see on main today. Answered in the thread.
  • An independent review pass (gpt-6.2-sol) raised one low-severity point: on a 1024px-wide touch screen with a long synopsis, the now-visible previous arrow can overlap the start of the hero text. That overlap already happens at every width from 640px to 1023px, where the arrows are visible and the text inset is smaller (24px against 40px on lg). This PR doesn't introduce it, so nothing changes here.

Follow-up

Checks

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

@Quick104
Quick104 merged commit 32f158f into Silo-Server:main Nov 18, 2026
25 checks passed
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/S 0–49 added + deleted lines (all files); change volume, not priority.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants