Skip to content

feat(timeline): Markdown tables are one flat card with a lifted header row - #2567

Open
kitlangton wants to merge 1 commit into
devfrom
table-single-flat-card
Open

kitlangton wants to merge 1 commit into
devfrom
table-single-flat-card

Conversation

@kitlangton

Copy link
Copy Markdown
Collaborator

Markdown tables in the timeline are now one flat card: a single hairline ring, a faintly lifted header row, and the same hairline between every row.
Before, a table sat in two cards, a lighter tray with a darker raised card inset inside it, so every table had a double edge and a header floating outside the rows. Wide tables still scroll sideways the same way.

❌ Before

  1. An outer tray in a lighter fill with its own ring, 2 pt of padding around the rows.
  2. A darker raised card with a drop shadow inside it, holding only the body rows.
  3. The header sat on the tray, outside the card, with no line under it.
  4. In cells that wrap, inline-code pills on consecutive lines nearly touched.

✅ After

  1. One card in the timeline's background, one 0.5 pt ring, no shadow.
  2. The header row is a band lifted 3 % toward the text colour (2 % in light), so it follows any theme.
  3. One hairline, in the ring's colour, under the header and between every row.
  4. Table lines are 18 pt instead of 16, so wrapped code pills keep a gap.
- tray(layer_01, ring) > [ header, raised card(bg_base, shadow) > rows ]
+ card(bg_base, 0.5 ring) > [ header band(text @ 3%), rule, row, rule, row … ]

📊 Proof: dark and light, before on the left, after on the right. A compact table with wrapped inline code, and an 11-column table that scrolls sideways.

Tables, dark: before | after

Tables, light: before | after

High-readability mode keeps its own table font (20.5 pt lines) and was checked in both themes.

👀 Read: the table block in crates/opencode-ui/src/style.rs. It drops the kit's table_card preset and sets the frame, rules, header fill and cell type directly, because the preset always adds the inner body card. The corner radius stays at the kit's fixed 6 pt (the mockup used 8 pt): 6 pt looks crisp, and the header band and scroll fade clip cleanly to it. The rest is routine.

Design picked from a set of table mockups · no user reports · screenshots from a fixture session at 2× scale

Checks run
  • cargo check --bin opencode-desktop: ok
  • cargo check -p session-view --examples: ok
  • cargo check -p opencode-web --target wasm32-unknown-unknown: ok
  • bash scripts/guardrails.sh: 12/12 passed

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant