Skip to content

Workspace pages always show an inert root scrollbar #3616

Closed

Description

@max-sixty

theme.css sets @media screen { html[data-lf-live] { height: 100%; overflow-x: hidden; overflow-y: scroll } }. On a layout-workspace page the document never scrolls, because the tab panes scroll inside it. So with classic scrollbars, the root shows a disabled vertical track 15px wide, with arrows and no thumb.

Measured in headless Chromium on Linux at 1200×900, without --hide-scrollbars:

  • html scrollHeight and clientHeight are both 900, and setting scrollTop to 10000 reads back 0.
  • With a long tab open, the tab pane scrolls (785px tall, 2925px of content) while html stays 900/900.
  • html clientWidth is 1185 of 1200.

Expected: no root scrollbar unless the document overflows, as a workspace stacked on a narrow window does.

Possible fix: html[data-lf-live][data-lf-layout~="workspace"] { overflow-y: auto; }. Use auto rather than hidden, since a stacked workspace does scroll. The same rule added in a page's own CSS took the track from 15px to 0.

Repro: open this page in a browser with classic (non-overlay) scrollbars.

<!doctype html>
<html lang="en">
  <head><title>Workspace repro</title></head>
  <body>
    <main class="layout-workspace">
      <header><h1 id="title">Workspace repro</h1></header>
      <lf-tabs id="queue" list="side">
        <lf-tab id="t-a" label="A"><p>Tab A.</p></lf-tab>
        <lf-tab id="t-b" label="B"><p>Tab B.</p></lf-tab>
      </lf-tabs>
    </main>
  </body>
</html>

Seen on leaf cc7db77, installed 2026-10-21T23:46:25-07:00.

This was written by Claude Code on behalf of max-sixty

Activity

  1. added
    bug
    on Oct 22, 2026
  2. added a commit that references this issue on Oct 22, 2026
    4adddf3
  3. leaf-agent commented on Oct 22, 2026

    @leaf-agent
    Collaborator

    Fixed in #3628, which merged after its checks passed. Live workspace pages now use an automatic root scrollbar: it disappears when only the workspace regions scroll and remains available when the document flows in a short window. The classic-scrollbar regression test covers both sizes; it failed before the CSS change and passed afterward.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions