Skip to content

Keep wide table content accessible in narrow editor panes #23

Closed

Description

@BinaryOutlook

Stage 1 — Reliable appearance and controls

Synopsis

Document-table content needs its own responsive behavior, independently of toolbar overflow. Establish which narrow-pane cases fail and provide scrolling or reveal behavior that keeps every cell reachable.

End goal

Wide tables remain fully accessible and editable in narrow panes without discarding, replacing, or silently hiding their content.

Start after

No prerequisite issue. This work can start independently from freshly fetched origin/main; stage numbering does not require waiting for every earlier milestone. Use the repository's dedicated feature-branch/worktree workflow and record the actual base revision.

Current evidence

The original report did not conclusively separate clipping of the document table from clipping of its toolbar. This issue intentionally owns the document-content investigation and agreed access behavior. Do not claim a confirmed content-loss bug before reproducing one.

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

  • Provide a discoverable horizontal scrolling/reveal mechanism where a table cannot fit; table-local scrolling is preferred when it preserves editor contracts.
  • A visual overflow hint must never replace the actual editable cell content with literal ellipsis characters.
  • This issue does not change default header alignment, Markdown alignment syntax, or ordinary block spacing.

Acceptance criteria

  • Every header and body cell of a wide table is reachable by pointer and keyboard in a narrow pane, including nested tables where supported.
  • Selection and the active cell remain correct when scrolling, resizing, entering/leaving a cell, and invoking table actions.
  • Resize, scroll, or reveal operations leave Markdown, clean state, and undo history unchanged.
  • An unrelated edit followed by save/reopen preserves table text, explicit alignment, and structure.
  • Editor-only scrolling containers or hints do not leak into serialization or exported document content.

Verification

  • Use synthetic many-column tables, long unbroken values, inline formatting, and nested-container cases; record any current failures before fixing them.
  • Test resize and sidebar changes, keyboard cell navigation, source switching, save/reopen, and output preparation.
  • Check production CSS in both editor hosts. Separate this issue's content-overflow evidence from table-toolbar tests.

Source pointers

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

Related work

Related: #16 owns broader Markdown interpretation, heading/block spacing, and explicit table alignment. Coordinate shared table/layout boundaries; this issue owns access to wide table content. #16 is not a blanket prerequisite.

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.

Activity

  1. added
    accessibility
    enhancement
    on Sep 19, 2026
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

    accessibilityenhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions