Skip to content

Studio: scale the expanded markdown table's text with the UI font size - #13996

Merged
danielhanchen merged 1 commit into
mainfrom
dh/ci-md-table-dialog-font-scale
Oct 16, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
dh/ci-md-table-dialog-font-scale

Conversation

@danielhanchen

@danielhanchen danielhanchen commented Oct 16, 2026 •

Copy link
Copy Markdown
Member

Summary

Repo tests (CPU, studio) fails on main since #13973:

tests/studio/test_ui_font_scale_contract.py::test_css_font_sizes_reference_the_scale
E   AssertionError: CSS typography must multiply by var(--ui-font-scale, 1) or be allowlisted here with a reason: ['index.css: font-size: 1rem;']

#13973 gave the expanded markdown table dialog font-size: 1rem. Studio's UI font size setting reaches text only through --ui-font-scale and never through the root font size. A bare 1rem therefore pins that dialog at 16 px whatever the user picked, while the same table inline in the chat follows the setting. The contract test is right, so the CSS is what changes.

Change

.aui-md-table-dialog now uses calc(1rem * var(--ui-font-scale, 1)), like the other scaled rules in index.css. At the default UI font size this renders at 15 px instead of 16 px, matching the chat around it. With a larger UI font size, the expanded table now grows with it.

Testing

  • tests/studio/test_ui_font_scale_contract.py: 12 passed. It fails on main with the error above.
  • Before/after Studio builds (base 1574001 vs this branch), same scripted reply, UI font size set to 1.25x, the table expanded with View fullscreen. Computed font size of the dialog: 16 px -> 20 px (cells too). The inline table text was already scaled on both builds. Before, the expanded table reads smaller than the table behind it; after, it matches.

Expanded markdown table at 1.25x UI font size, before and after

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 16, 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-16T11:30:41.164385Z 771e3dc Manual request
🔒 Security Review ⚠️ Failed 2026-10-16T11:29:49.119999Z 771e3dc PR opened
ℹ️ 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. Keep it up!

Reviewed commit: 771e3dc813

ℹ️ 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".

danielhanchen pushed a commit to danielhanchen/unsloth-staging-2 that referenced this pull request Oct 16, 2026
@danielhanchen
danielhanchen merged commit 24e2438 into main Oct 16, 2026
@danielhanchen
danielhanchen deleted the dh/ci-md-table-dialog-font-scale branch October 16, 2026 11:40
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