Skip to content

左侧栏:可以拖动调宽(双击复位);收起后的浮出样式照 Attio 改,鼠标移走就收回 #36227

Description

@objectstack-fleet

coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff

立卡门类别:④ 协调节点的子单,承父单 #36107(外壳专题,维护者直派)。⛔ 不是认领。优先级 p2(协调席定的,维护者未指定)。

维护者说过的(2026-11-22)

  • 要求实测 Attio「每一栏的默认宽度,最小宽度,包括左侧栏打开与关闭,什么时候自动打开,自动关闭」。
  • 协调席实测后建议「左侧栏可以拖动调宽,带上下限,双击复位」,维护者:「四条都立卡」。本卡是第 3 条。
  • 「Attio 窄屏下浮出的左侧栏,鼠标移动走就关了」
  • 「而且他的浮出样式也好看,我们也要改」

现状(主干 6c7c6db250,本机环境浏览器实测,1440 宽,自建应用「CRM客户管理」)

我们的左侧栏:贴着左边和上下边浮在列表上

  • 左侧栏固定 256 宽,没有可以拖动的分隔线。
  • 收起状态下点左上角的展开按钮:左侧栏贴着屏幕左边、从上到下整条浮在列表上面,直角、没有留边;点一下列表它就收回。

Attio(同日浏览器实测):

Attio 收起后浮出的左侧栏:四周留边的圆角卡片

  • 默认 275 宽,右边缘可以拖动,范围 200 到 350,双击右边缘回到 275。宽度下次打开沿用。
  • 手动收起后完全隐藏,不留图标条,内容占满整个宽度。鼠标移到屏幕最左边,左侧栏浮出来;鼠标移走就收回。
  • 浮出时是一张卡片:离屏幕左边和上下各留 8,圆角、带阴影,下面的内容不变暗。
  • 窗口窄(约 865 以下)时自动收起,浮出的样式和行为同上。

要做的

  1. 拖动调宽:左侧栏展开(钉住)时,右边缘可以拖动。默认宽度不变(256),范围 200 到 350。双击右边缘回到默认。宽度记在浏览器里,下次打开沿用。
  2. 浮出样式:左侧栏收起后浮出来时,改成 Attio 那样的卡片:离左边和上下留边、圆角、带阴影,下面的内容不变暗。
  3. 浮出和收回:收起状态下,鼠标移到屏幕最左边就浮出;鼠标移出左侧栏就收回。点展开按钮仍然是把它钉住。
  4. 浮出时的宽度用拖动后记住的宽度。

不做的

  • 不改「什么宽度自动收起、自动展开」的规则(我们现在的规则这次没有逐个宽度测,另议)。
  • 不改左侧栏里的内容和分组。
  • 不改手机上的菜单。

验收

  • 左侧栏钉住时拖右边缘:能调宽,拖到头是 200 和 350;双击回到 256;刷新后宽度还在。
  • 收起后把鼠标移到屏幕最左边:左侧栏以卡片形式浮出,四周留边、圆角、有阴影;鼠标移到列表上:收回。
  • 浮出时点一个菜单项:正常跳转,跳转后左侧栏收回。
  • 浮出时下面的列表没有变暗,也没有被挤动。
  • 右侧预览开着的时候拖左侧栏:预览不受影响。
  • PR 正文附浮出状态和拖宽后的截图。

协调席自己加的(不是维护者原话)

  • 范围 200 到 350、默认保持 256、双击复位、宽度记在浏览器里。数字照的是 Attio。
  • 「鼠标移到屏幕最左边就浮出」。维护者说的是浮出后「鼠标移动走就关了」和「浮出样式也好看」;怎么触发浮出是协调席照 Attio 写的。
  • 第 4 项和验收里的后三条。

没有核对的

  • 我们的左侧栏在 1440 宽时点展开为什么是浮在列表上而不是钉住挤开内容,是不是有意的设计,没有确认。浏览器里记着 os:console-sidebar:wide-open=false。
  • 我们在各窗口宽度下自动收起、自动展开的分界点,没有测。
  • 触摸屏(平板)上没有鼠标悬停,浮出怎么触发,没有想清楚;最低限度是展开按钮仍然可用。

Reader: domain:ui 车道。左侧栏在 ui/packages/app-shell。

Dedupe: 侧栏 拖动 宽度、左侧栏 调宽(objectstack,open)→ 都是 0。相关:#36112。

Activity

  1. added
    enhancement
    priority:p2
    domain:ui
    on Nov 22, 2026
  2. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff

    派发记录 · 2026-11-22T02:43Z

    维护者 2026-11-22 对这张卡说「通知派发」。交给 os-sales 的席位 repo:objectstack#1,随后在它的信箱 #35349 里发接手请求。

    同批派发:#36225、#36226。拖动范围和浮出的触发方式是协调席提的,浮出样式和「鼠标移走就收回」是维护者原话。

  3. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:ui (app shell sidebar) · pm:queue; rationale: area:ux · Feature · a child the coordinator filed under topic #36107 (maintainer: 「四条都立卡」): a resizable left sidebar, and an Attio-style floating panel when collapsed that closes on mouse-out → p2 as set by the coordinator · size S.

  4. added
    pm:queue
    on Nov 22, 2026
  5. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj

    Claim: PM loop round 4 · 2026-11-23T08:48Z
    Session: session_01JQwxbZeHNsF3RWcWpj7rGj
    Thread session: session_01JQwxbWjfzbfpWXFKqr1sFF
    Account: os-warren
    Branch: the card thread's own branch, named at its first push; the seat amends this claim then
    Worktree: objectstack-issue-36227
    Domain: domain:ui
    Seat: repo:objectstack#1
    Area: card thread #36227 (w4-E, rides with #36471)
    Dispatch: the maintainer's ruling in this seat's project thread, 2026-11-23 06:15Z (decision card 「只接 p1,体验类也接」) and 06:16Z verbatim 「ux 直接 p1 和 专题卡」: this seat takes area:ux p1 cards and ux epic children (child of ux epic #36107).
    File surface: ui/packages/app-shell/src/layout/** (left sidebar width, collapsed fly-out); one changeset per moved package (stop on breach; explain in the report)
    Container & model: S, mode:thread, model: opus — dispatch-gates --tier: no path-derived mandate, default tier (M, design judgement); the thread's first report states the served tier, effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — a feature card
    Thread-read: 7073125539
    Premise: holds as filed; the card thread re-reads the sidebar on current main (the #36107 phases have moved it) before code; behaviour referenced from Attio, never its code
    Serial constraints cleared: no open PR names #36227 or #36471

  6. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 23, 2026
  7. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj

    Claim amendment · 2026-11-23T09:37Z — amends claim 7095883725.
    Branch: claude/project-thread-9amm3d
    PR: #36655 (draft, head eebb7500), Fixes #36227 and Fixes #36471
    Clause-②: yes (widening)
    Metadata-protocol: none
    Reading (PR body): one new @object-ui/i18n key in all 11 locales (the sidebar width handle's label); no spec, schema or published export change. The claim said no; the widening owes an L2 at TIER_DEFAULT, which the seat runs before ACCEPT.

  8. removed
    pm:dispatched
    on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxdomain:uienhancementpriority:p2

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions