Agent pane: align markdown table actions

Merged
TE
7d ago
+165-20

Summary

  • Align the Markdown table Open and Copy actions at the table's top-right edge.
  • Give the pair the shared 24px control height, 14px shared row icon size, centered glyphs, and shared action gap.
  • Keep the three TableBlock gallery variants and cover both glyph sizes in the table action test.

Leo: "You can pass this off to a codex lane as well, like the sort of table and copy the things. These aren't lined up properly. We can just fix this pretty easily. Just line it up better."

Changelog

  • Fixed Markdown table actions so the expand and copy glyphs share a centered line and consistent size.

Testing

  • Review P2 at a9af0e04 (the pair at top: 0; right: 0 covered the last header's text and caught its clicks) is fixed: the pair sits outside the cells at the table's top-right corner (left: 100%), and .cv-table-block reserves its width.
  • bun test webviews/test/agent-pane-table-actions.test.ts fails with the fix reverted (the pair's left edge 326 inside a table edge of 377.9; run 40980227292) and passes at 74f191dd with bun run check and the table copy test, 13/13 (run 40980415323).
  • Code cards reviewed: their existing Open/Copy/Wrap actions already share equal boxes and glyph sizing.

Gallery

  • agent-pane.table-block: rest, hover, and first-block variants. Before/after renders are in the gallery advisory run's artifact (no renders on the public PR, #21400).

Gallery: agent-pane.table-block

Agent session: agent session


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.


Summary by cubic

Aligns the Markdown table Open and Copy controls in the agent pane so they form a centered 24px-tall pair at the table's top-right corner instead of two unevenly sized buttons beside the header row. Both buttons now use the shared compact control height, the rowIconSize(12) glyph size, and the --cv-action-gap spacing also used by code-block actions. The pair sits outside the cells, in space the block reserves at the column's edge, so it never covers a header's text or catches a click meant for a cell. A gallery-render test verifies the pair's geometry and non-overlap with cells, and the table copy test now renders through the artifact context and checks both glyph sizes.