Skip to content

Studio: use the inline markdown table style in the Hub, file previews and the composer draft - #14087

Merged
shimmyshimmer merged 1 commit into
mainfrom
studio-md-tables-everywhere
Oct 17, 2026
Merged

shimmyshimmer merged 1 commit into
mainfrom
studio-md-tables-everywhere

Conversation

@shimmyshimmer

@shimmyshimmer shimmyshimmer commented Oct 17, 2026 •

Copy link
Copy Markdown
Member

What changed

Follow-up to #13973. Markdown tables outside chat now use the same inline style as chat replies: no card or inner border, a semibold header with one rule under it, thin row dividers, cells that wrap, and alignment markers respected.

  • With hover controls (copy, download as CSV or Markdown, expand): Model Hub model and dataset READMEs (they had no table controls before), and interactive markdown previews: markdown files and attachments opened in the side panel or the document viewer, Library previews, saved prompts and research reports.
  • Same table, no controls: previews nested inside another control (inert and plain previews, attachment thumbnails) and the composer draft preview.
  • The hover controls cover the end of the header, so they paint whatever surface is behind the table (chat page, browser panel, Hub, dialog) instead of assuming the chat background. On the lighter side panel the old fill showed as a dark box.
  • The cell width floor is min(8rem, 15cqi): wide tables in chat still scroll with the edge fade, while a five-column table still fits a narrow side panel instead of pushing its last column off-screen. Cells wrap at word boundaries even inside previews that set overflow-wrap: anywhere.

Implementation: markdown-table.tsx now also exports StaticMarkdownTable and the shared Streamdown icon map, registered as the table component in model-readme.tsx, markdown-preview.tsx and composer-draft-preview.tsx. The README's own th / td prose classes are dropped in favour of the shared ones (its smaller table text size is kept).

Verification

  • npm run typecheck, npm test (12537 pass), npm run build, npm run i18n:check.
  • Isolated Studio built from this branch, BEFORE served from the merge base:
    • Hub README of unsloth/gemma-3-4b-it-GGUF: table wrapped inline, controls on hover, expand opens the dialog.
    • A .md attachment opened in the side panel: all five columns fit, hover controls blend with the panel surface; the composer thumbnail renders the table without controls.
    • Chat tables re-checked: no horizontal overflow of the thread, wide table scrolls with the fade.

Model Hub README, BEFORE (merge base) and AFTER on hover:
hub readme

A markdown attachment in the side panel, BEFORE and AFTER:
file panel

Not tested here

  • Saved prompts, Library, research reports, release notes and the composer draft preview were not opened in a browser; they render through the same MarkdownPreview / Streamdown paths exercised above.
  • Desktop (Tauri) builds.

shimmyshimmer added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 17, 2026
shimmyshimmer added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 17, 2026
@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 17, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-17T22:19:11.458486Z ee7e422 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Chef's kiss.

Reviewed commit: ee7e422b13

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@shimmyshimmer
shimmyshimmer merged commit 72d0d2d into main Oct 17, 2026
@shimmyshimmer
shimmyshimmer deleted the studio-md-tables-everywhere branch October 17, 2026 22:19
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