Repository navigation
fix(site/src/pages/AgentsPage): unify Markdown spacing, align lists and table columns - #31749
Merged
Merged
Conversation
Member
Author
This comment has been minimized.
This comment has been minimized.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This comment has been minimized.
This comment has been minimized.
mafredri
marked this pull request as ready for review
November 6, 2026 16:36
This comment has been minimized.
This comment has been minimized.
…age bubbles User messages render through Response since #31586, which kept Streamdown's assistant-sized spacing: 16px between blocks, 4px padding on each list item, and the browser's 1em paragraph margin. In a bubble this left large gaps where the user typed a single newline. Add a compact Response mode that uses 8px block gaps, no list item padding, and no paragraph bottom margin, and enable it for user messages.
…ped list items User and agent messages render the same Markdown at the same size, so they now share one spacing: 12px between blocks and 2px padding per list item, replacing the user-only compact mode. Streamdown places list markers inside the text box, so wrapped lines started under the bullet. Render lists with outside markers so wrapped lines align with the item text.
…own's elements The ul, ol, and li overrides dropped the props Streamdown passes, so an ordered list starting at 3 restarted at 1. Style lists through descendant selectors on the Markdown root instead, and render list item paragraphs as blocks so a multi-paragraph item keeps its break.
Resetting padding on every task list removed the indent from nested task lists, and hiding markers on the list removed bullets from plain items mixed into it. Hide the marker on each task item instead.
The Lists story renders a list starting at three, and Pixel captures its numbering, so the Vitest attribute check duplicated it.
The th and td overrides passed only their children, so the alignment from a table's separator row was dropped and every column rendered left-aligned. Forward the style that carries it. Paragraphs inside one list item were further apart than separate items. Use the same gap for both.
This comment has been minimized.
This comment has been minimized.
mafredri
force-pushed
the
fix-user-message-markdown-spacing
branch
from
November 6, 2026 16:44
abea864 to
3d98434
Compare
DanielleMaywood
approved these changes
Nov 9, 2026
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.






User messages render Markdown through
Responsesince #31586 and inherited Streamdown's spacing: 16px between blocks, 4px padding on every list item, and the browser's default 1em paragraph margin. Single-newline text in a bubble rendered with large gaps, and agent replies had the same loose lists.User and agent messages now share one spacing. Measured as visible space between text rows (a 21px line already leaves about 4px between wrapped lines), the gaps double at each level: 4px between lines, 8px between list items (main: 12px), 16px between blocks (main: 20px). In CSS that is
space-y-3between blocks andpy-0.5per list item. EveryResponsechanges, so expect Pixel diffs in plan previews, subagent prompts, and other tool output.Wrapped list items also started under the bullet, because Streamdown uses
list-insidemarkers. Lists now use outside markers, so wrapped lines align with the item text. The styling uses descendant selectors on the Markdown root rather than component overrides, so Streamdown still renders the list elements and their props, such as an ordered list'sstart. Task items drop the bullet in favor of their checkbox. Paragraphs inside a list item stay separate blocks (main joins them onto one line), with the same 8px gap as between items.Table cells dropped the column alignment from the separator row (
| :---: | ---: |), because thethandtdoverrides passed only their children. They now forward the style that carries it.The new
ResponsestoriesListsandTableColumnAlignmentcover these cases.Before is main rendering the same stories (the two new stories copied onto main); after is this branch.
UserMessageWithMarkdown)ResponseMarkdownAndLinks)ResponseLists)ResponseTableColumnAlignment)