Skip to content

Keep table-toolbar actions accessible during live resizing #22

Closed

Description

@BinaryOutlook

Stage 1 — Reliable appearance and controls

Synopsis

When available space shrinks, the selected table's toolbar must retain complete visible controls and expose the remaining actions through a real overflow menu instead of clipping them.

End goal

Every enabled table action stays reachable throughout live resizing, scrolling, sidebar changes, and toolbar relocation.

Start after

Start implementation only after every prerequisite is merged into main or has a maintainer-accepted technical freeze recorded in its linked issue. A freeze must identify the exact source/prototype commit and settled contracts; an open draft PR alone is insufficient. For an investigation prerequisite, acceptance must identify the approved design/report revision and prototype commit if one exists.

Fetch current origin/main before branching. If using a freeze, record an integration base containing all required prerequisite changes and link the freeze decisions in the PR. Validate the combined result again after the final prerequisite changes are integrated. The recorded freeze governs any agreed early start while a prerequisite issue remains open.

Current evidence

Clipping during dynamic resizing was reported; the exact failing pane dimensions and original installed build were not recorded. The existing implementation already has compact top-bar and scrolling/fallback behavior. Reproduce the failing case and improve that behavior rather than assuming no overflow handling exists.

Source-inspected baseline: 19b276f3b819b9549e3a9e06d2dc967d8187ec06. Recheck the relevant code on the actual implementation base. No current runtime pass or implementation completion is claimed by this issue.

Agreed scope

  • Use complete visible buttons in a stable order; move whole actions into a genuine More actions menu when necessary.
  • For horizontal controls, retain the leading actions that fit; use the analogous leading/top order for vertical controls.
  • The overflow control and table-settings icon have separate roles and accessible names.
  • Keep existing Automatic and explicit placement semantics; do not silently convert an explicit placement preference to Automatic.

Acceptance criteria

  • No enabled action becomes unreachable or is represented only by a partially clipped button during shrink/expand, sidebar resize, or scrolling.
  • The overflow menu exposes each hidden action exactly once and acts on the retained table/cell; all actions can still be reached in the smallest supported pane.
  • Horizontal, vertical, floating, docked, compact, and focused/open-menu states are covered, including resizing while interacting.
  • Keyboard focus and Escape behavior remain coherent when an action moves between the toolbar and overflow menu.
  • Resize and view-only layout changes preserve source, selection, clean state, and undo; explicit choices remain stable after layout settles.

Verification

  • Add focused production-CSS browser regressions for wide-to-narrow-to-wide and short-pane transitions, with open menus and retained focus.
  • Use a synthetic table and exercise insertion, deletion, alignment, and placement after overflow transitions.
  • Verify the installed extension and Electron; report the tested minimum usable pane sizes and any unavoidable host limit.

Source pointers

  • src/webview/table-toolbar.js
  • src/shared/table-placement.js
  • src/webview/styles.css
  • test/specs/table-toolbar-placement.spec.ts

Delivery contract

Implement the shared editor behavior in both VS Code and Electron. View-only settings/actions must preserve Markdown, selection/editing context, clean state, and undo history. For new or changed settings, keep host wiring, manifest descriptions, all supported translations, and documentation consistent. Preserve existing identifiers and defaults except for the deliberate changes specified above.

Work from the repository root using the Node version in .node-version and the maintained instructions in CONTRIBUTING.md, docs/building.md, and docs/testing/README.md; export changes also follow docs/export-verification.md. Run full compilation after webview JavaScript/CSS, shared-module, or translation changes, plus checks that exercise the changed behavior. Rebuild and reinstall for installed-extension evidence. Report failures/skips honestly; follow required CI and review gates. Update affected documentation and review any committed Markdown in source and rendered form.

Link the PR or investigation to this issue. Keep remediation on the same focused work item where practical. Completion requires the stated evidence and accepted outcome; opening a draft PR does not complete the issue. No deadline or assignee is imposed by this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    accessibilitybugenhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions