Skip to content

Keep selected Aliki search result visible - #1805

Merged
tompng merged 1 commit into
ruby:masterfrom
st0012:codex/keep-aliki-search-selection-visible
Sep 7, 2026
Merged

Keep selected Aliki search result visible#1805
tompng merged 1 commit into
ruby:masterfrom
st0012:codex/keep-aliki-search-selection-visible

Conversation

@st0012

@st0012 st0012 commented Aug 31, 2026

Copy link
Copy Markdown
Member

On compact layouts, the search body owned scrolling while keyboard navigation continued to scroll the result list. Arrow-key selection moved, but the selected row could leave the visible panel.

Keep the result list as the scroll container in the compact layout, matching desktop. The existing search navigation now keeps the selected row visible without breakpoint-specific JavaScript or moving the page.

@st0012
st0012 requested a deployment to fork-preview-protection August 31, 2026 18:25 — with GitHub Actions Waiting
@st0012
st0012 force-pushed the codex/unify-aliki-search branch from 4e29cdc to 671dc73 Compare August 31, 2026 18:36
@st0012
st0012 force-pushed the codex/keep-aliki-search-selection-visible branch from 28d7cef to 09523fb Compare August 31, 2026 18:38
@st0012
st0012 requested a deployment to fork-preview-protection August 31, 2026 18:38 — with GitHub Actions Waiting
@st0012
st0012 force-pushed the codex/keep-aliki-search-selection-visible branch from 09523fb to 471fd7b Compare September 1, 2026 10:42
@st0012
st0012 force-pushed the codex/unify-aliki-search branch from 671dc73 to dcf0379 Compare September 1, 2026 12:24
@st0012
st0012 force-pushed the codex/keep-aliki-search-selection-visible branch from 471fd7b to 24a0780 Compare September 6, 2026 13:03
@st0012
st0012 changed the base branch from codex/unify-aliki-search to master September 6, 2026 13:04
@st0012
st0012 marked this pull request as ready for review September 6, 2026 13:04
Copilot AI balanced review requested due to automatic review settings September 6, 2026 13:04
@st0012
st0012 force-pushed the codex/keep-aliki-search-selection-visible branch from 24a0780 to 9018ad6 Compare September 6, 2026 13:05

Copilot AI 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.

🟡 Changes recommended

Relative positioning retains the desktop top offset, potentially moving compact results outside the clipped viewport.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Keeps keyboard-selected Aliki search results visible in compact layouts.

Changes:

  • Makes the search body a constrained flex container.
  • Moves vertical scrolling to the result list.
File summaries
File Description
lib/rdoc/generator/template/aliki/css/rdoc.css Updates compact search scrolling behavior.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread lib/rdoc/generator/template/aliki/css/rdoc.css
Copilot AI review requested due to automatic review settings September 6, 2026 13:06
@github-actions

github-actions Bot commented Sep 6, 2026

Copy link
Copy Markdown

Documentation preview

View the preview

Commit: ab52458

Copilot AI 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.

🟢 Approval recommended

The CSS consistently constrains the compact search panel and makes the result list the active scroll container.

Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0 new
  • Review effort level: Balanced

@st0012 st0012 added the bug label Sep 6, 2026
Comment thread lib/rdoc/generator/template/aliki/css/rdoc.css Outdated
@st0012
st0012 force-pushed the codex/keep-aliki-search-selection-visible branch from 9018ad6 to ab52458 Compare September 6, 2026 23:20
Copilot AI review requested due to automatic review settings September 6, 2026 23:20

Copilot AI 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.

🔵 Needs a closer look

Relative positioning unintentionally activates the existing vertical offset and can shift or clip results.

Review details

Suppressed comments (1)

lib/rdoc/generator/template/aliki/css/rdoc.css:2137

  • The base #search-results rule still sets top: calc(100% + var(--space-2)). Changing this element from static to relative makes that offset apply in the compact layout, shifting the list downward (and potentially clipping it inside the overflow-hidden body). Reset top while retaining relative positioning for the navigation offset calculations.
    position: relative;
  • Files reviewed: 1/1 changed files
  • Comments generated: 0 new
  • Review effort level: Balanced

@tompng tompng left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

👍

@tompng
tompng merged commit 756af19 into ruby:master Sep 7, 2026
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants