GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(site): reopen product menus on opencode.ai instead of a clipped sliver by YousefSaad47 · Pull Request #63180 · anomalyco/opencode

Conversation

@YousefSaad47

@YousefSaad47 YousefSaad47 commented Nov 10, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Issue for this PR

Closes #63179 — regression from #63060's static-HTML cutover.

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Fixes the reopen failure of the download menus on opencode.ai. When a menu closes, the hidden menu is still a :popover-open popover with placement styles inline; when placeMenu() re-measures it, UA popover rules (inset 0, margin auto) apply and the popover never re-enters the top layer, so the carousel clips it. The fix resets the menu's inline styles, popover state and data-side before measuring. The null-offsetParent guard is unchanged and still bails on hidden menus.

Scope: one file, services/site/src/component/site/place-menu.ts. No change to first open; reopen now lands at identical position/size as first open.

How did you verify your code works?

Production build (bun run build + perf/serve.ts --port 4300), Chrome: open → close → reopen for the hero chevron, the Download section chevron and "More mobile apps" — all reopen at identical geometry to the first open (same y, w, h, gap). bun run build passes (check-worker-start: 200). The same script against the live site fails all three (control).

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@YousefSaad47
fix(site): re-place menus on reopen instead of bailing on null offset…
0a24afe
…Parent
@opencodejr opencodejr Bot mentioned this pull request Nov 10, 2026
site: reopening the download menus shows a clipped sliver instead of the full menu #63179
Closed
opencodejr[bot]
opencodejr Bot reviewed Nov 10, 2026
View reviewed changes

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

This fixes the reopen bug. In a production build (bun run build + perf/serve.ts) in headless Chromium, the four home-page product menus reopen as popovers at full size with this change. On the base they reopen clipped and outside the top layer (screenshots below).

One thing is still off. A reopened menu loses its 8px gap and sits flush against the button, and some menus come back a few pixels wider. On first open the gap is there. Details in the inline comment.

The public API is unchanged: this only touches the website's client code.

Before

After

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread services/site/src/component/site/place-menu.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

@YousefSaad47
fix(site): also reset the menu's popover state before re-placing
6f2e52a
opencodejr[bot]
opencodejr Bot reviewed Nov 10, 2026
View reviewed changes

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

The leftover popover state from my earlier comment is fixed: reopened menus now land at the same position and size as on first open. I checked open → close → reopen on all four home-page product menus in a production build in headless Chromium, and closing with Escape and with a click outside on the first one. All of them reopen fully. On the base they reopen clipped (screenshots below).

The public API is unchanged: this only touches the website's client code.

No further concerns.

Before

After

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@opencodejr opencodejr Bot mentioned this pull request Nov 11, 2026
fix(site): show download and install menus again after closing them #63311
Merged
3 of 6 tasks
@YousefSaad47

YousefSaad47 commented Nov 11, 2026

Copy link
Copy Markdown
Author

Closing: fixed in #63311.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@YousefSaad47 YousefSaad47 closed this Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@opencodejr opencodejr[bot] opencodejr[bot] left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

site: reopening the download menus shows a clipped sliver instead of the full menu

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@YousefSaad47
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.