Skip to content

style(tables): bring roomier Rich-like table styling to main - #69

Merged
saforem2 merged 1 commit into
mainfrom
fix/rich-markdown-table-spacing
Nov 12, 2026
Merged

saforem2 merged 1 commit into
mainfrom
fix/rich-markdown-table-spacing

Conversation

@saforem2

@saforem2 saforem2 commented Nov 12, 2026 •

Copy link
Copy Markdown
Owner

Apply the roomier square-grid Markdown table styling that was visible only in the local checkout: 0.4lh vertical cell padding, accent-colored headers, and a neutral header separator. All table text continues to inherit 1rem.

Summary by Sourcery

Enhancements:

  • Update default Markdown tables with roomier Rich-like square-grid styling, including padded cells, accent-colored bold headers, and a neutral header separator while preserving the denser terminal variant.

Copilot AI balanced review requested due to automatic review settings November 12, 2026 16:44
@sourcery-ai

sourcery-ai Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

UI

Update the default Markdown table styling with roomier cell padding, accent-colored headers, a neutral header separator, and symmetric first-row spacing while preserving the terminal-style opt-out.

  • web/src/styles/global.css L3044-3123 (6 small edits)

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've found 2 issues

Prompt for AI Agents
Please address the comments from this code review:

## Individual Comments

### Comment 1
<location path="web/src/styles/global.css" line_range="3075" />
<code_context>
         padding-top: 0 !important;
     }

-    /* Default table style: simple 1px borders on every cell, no webtui pseudo
</code_context>
<issue_to_address>
**Slide tables become much taller**

When a slide contains a dense Markdown table, the default-table rule also adds `0.4lh` above and below every cell in presentation tables. Dense slides therefore need substantially more vertical space and their content becomes scrollable instead of fitting in the slide.

Scope the roomier cell padding to non-presentation tables, or preserve the compact padding for tables inside presentations.
</issue_to_address>

### Comment 2
<location path="web/src/styles/global.css" line_range="3123" />
<code_context>
         > tr:first-child
         > :is(td, th) {
-        padding-top: 0 !important;
+        padding-top: 0.4lh !important;
     }

</code_context>
<issue_to_address>
**Code previews gain a top gap**

When a CodePreview table contains `.line-code` cells, the new first-row `padding-top: 0.4lh !important` rule overrides the existing `table:has(.line-code)` zero-padding reset, leaving a gap above the first code line while later lines remain tight.

Restrict the first-row padding rule to terminal tables so CodePreview tables retain zero padding.

Also at `web/src/styles/global.css:3124`.
</issue_to_address>

Sourcery is free for open source - if you like our reviews please consider sharing them ✨

Comment thread web/src/styles/global.css
border: 1px solid var(--foreground3);
padding: 0 1ch;
padding: 0.4lh 1.25ch;
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Medium · Slide tables become much taller

When a slide contains a dense Markdown table, the default-table rule also adds 0.4lh above and below every cell in presentation tables. Dense slides therefore need substantially more vertical space and their content becomes scrollable instead of fitting in the slide.

Scope the roomier cell padding to non-presentation tables, or preserve the compact padding for tables inside presentations.

Prompt for AI agents
In `web/src/styles/global.css` at line 3075:

**Slide tables become much taller**

When a slide contains a dense Markdown table, the default-table rule also adds `0.4lh` above and below every cell in presentation tables. Dense slides therefore need substantially more vertical space and their content becomes scrollable instead of fitting in the slide.

Scope the roomier cell padding to non-presentation tables, or preserve the compact padding for tables inside presentations.

Comment thread web/src/styles/global.css
> tr:first-child
> :is(td, th) {
padding-top: 0 !important;
padding-top: 0.4lh !important;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Medium · Code previews gain a top gap

When a CodePreview table contains .line-code cells, the new first-row padding-top: 0.4lh !important rule overrides the existing table:has(.line-code) zero-padding reset, leaving a gap above the first code line while later lines remain tight.

Restrict the first-row padding rule to terminal tables so CodePreview tables retain zero padding.

Also at web/src/styles/global.css:3124.

Prompt for AI agents
In `web/src/styles/global.css` at line 3123:

**Code previews gain a top gap**

When a CodePreview table contains `.line-code` cells, the new first-row `padding-top: 0.4lh !important` rule overrides the existing `table:has(.line-code)` zero-padding reset, leaving a gap above the first code line while later lines remain tight.

Restrict the first-row padding rule to terminal tables so CodePreview tables retain zero padding.

Also at `web/src/styles/global.css:3124`.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying sam-onl with  Cloudflare Pages  Cloudflare Pages

Latest commit: 326c334
Status: ✅  Deploy successful!
Preview URL: https://8a9b309a.sam-onl.pages.dev
Branch Preview URL: https://fix-rich-markdown-table-spac.sam-onl.pages.dev

View logs

@saforem2
saforem2 merged commit 902b03f into main Nov 12, 2026
2 of 3 checks passed
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.

2 participants