Skip to content

fix(hub-ui-onboard): keep the floating button out of page layout - #511

Open
SaKaNa-Y wants to merge 1 commit into
devframes:mainfrom
SaKaNa-Y:fix/onboarding-host-scrollbar
Open

SaKaNa-Y wants to merge 1 commit into
devframes:mainfrom
SaKaNa-Y:fix/onboarding-host-scrollbar

Conversation

@SaKaNa-Y

Copy link
Copy Markdown
Member

Closes #510

Summary

On a page that exactly fills the viewport, mounting the onboarding button adds a blank line below the app and makes the page scroll. The button and panel already use fixed positioning, but their host element still takes up space in the document.

Give the host a fixed position at the bottom left and reuse the button’s floating layer. This keeps the button clickable when the app uses a positioned container with its own z-index.

Evidence

Both screenshots show the same 720px viewport after scrolling to the bottom.

Before · 24px of extra height After · no extra height
A 744px document with a blank strip below the app A 720px document that fits the viewport

In Chromium, the panel opened on click and closed with Escape at both 390px and 1280px widths. On a 1600px page, the button stayed clickable above a fixed footer after scrolling 500px.

Merge Danger

Door: Two-way. Reverting the host rule restores the previous layout.

Blast Radius: Onboarding. A stacking error could put the install button behind the app.

@vercel

vercel Bot commented Nov 28, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
devframe Skipped Skipped Nov 28, 2026 7:14am UTC

Request Review

@github-actions

Copy link
Copy Markdown

👁️‍🗨️ Review this pull request with grouped, summarized diffs at:
👉 https://pulls.review/gh/devframes/devframe/511?from=github-actions[bot]

raw result

💭 analyzed by vercel-ai-gateway/anthropic/claude-sonnet-5
🕰️ 2026-11-28 07:16 UTC
🔗 head 74f9dba
🤖 automated by pulls.review

{
  "headSha": "74f9dba34c1ff5f3a0075b806ce43d21b9ff2a48",
  "result": {
    "overallSummary": "Small CSS fix: the onboarding button/panel host element was taking up layout space despite its children being fixed-positioned, causing a blank strip and unwanted scroll on viewport-filling pages. The fix pins the host itself with `position: fixed`, reusing the existing floating z-index layer.",
    "groups": [
      {
        "key": "fix-host-layout",
        "label": "Fix host layout",
        "summary": "Pins the onboarding widget's host element with a fixed position so it no longer occupies space in normal document flow, preventing the extra scroll/blank space it previously added to pages that exactly fill the viewport.",
        "category": "ui",
        "filePaths": [
          "packages/hub-ui-onboard/src/client/style.css"
        ],
        "lineNotes": [
          {
            "path": "packages/hub-ui-onboard/src/client/style.css",
            "side": "additions",
            "line": 6,
            "text": "The `:host` rule takes the element out of layout flow entirely; relies on `z-floating-anchor` to keep it above host-app content with its own stacking context."
          }
        ]
      }
    ],
    "schemaVersion": 1,
    "source": "llm",
    "generatedAt": "2026-11-28T07:16:24.125Z",
    "model": "vercel-ai-gateway/anthropic/claude-sonnet-5",
    "locale": "en"
  }
}

This branch was previously deployed

1 inactive deployment
Preview — 74f9dba3 Deployed Nov 28, 2026 by vercel[bot]
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.

hub-ui-onboard: injected element adds extra vertical scrollbar to viewport-height pages

1 participant