fix(docs): stop WebKit splitting short code tokens in table cells by jbergstroem · Pull Request #52065 · supabase/supabase · GitHub
Skip to content

fix(docs): stop WebKit splitting short code tokens in table cells - #52065

Closed
jbergstroem wants to merge 1 commit into
supabase:masterfrom
jbergstroem:jbergstroem/fix/read-write-text-layout-browsers
Closed

jbergstroem wants to merge 1 commit into
supabase:masterfrom
jbergstroem:jbergstroem/fix/read-write-text-layout-browsers

Conversation

@jbergstroem

@jbergstroem jbergstroem commented Oct 21, 2026 •

Copy link
Copy Markdown
Member

Problem

In Safari, short words break lines in our tables given how the break-all rule is applied.

Solution

Give cells that contain only a code token a minimum width so they stay intact while long values still wrap in Webkit/Safari.

Additional context

Before

Screenshot 2026-10-21 at 09 57 35

After

Screenshot 2026-10-21 at 09 57 46

Development preview

Environment Link
Preview Oauth Scopes example
Production Oauth Scopes example

Review instructions

  • Visit a page such as "oauth scopes" and confirm that Safari is no longer wrapping words like "Read"

Checklist

Check all before review:

  • I have read CONTRIBUTING.md
  • If I wrote a new docs topic or edited an existing topic, I used the /write-the-docs or /edit-the-docs skill, which applies the docs style guide

Give cells that contain only a code token a minimum width so they stay
intact while long values still wrap in Webkit/Safari.
@jbergstroem
jbergstroem requested a review from a team as a code owner October 21, 2026 09:24
@vercel

vercel Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
docs Ready Ready Preview, v0 Oct 21, 2026 9:30am UTC
studio-self-hosted Ready Ready Preview Oct 21, 2026 9:30am UTC
studio-staging Ready Ready Preview Oct 21, 2026 9:30am UTC
5 Skipped Deployments
Project Deployment Actions Updated
studio Ignored Ignored Oct 21, 2026 9:30am UTC
design-system Skipped Skipped Oct 21, 2026 9:30am UTC
kb Skipped Skipped Oct 21, 2026 9:30am UTC
ui-library Skipped Skipped Oct 21, 2026 9:30am UTC
zone-www-dot-com Skipped Skipped Oct 21, 2026 9:30am UTC

Request Review

@github-actions

Copy link
Copy Markdown
Contributor

Thanks for contributing to Supabase! ❤️ Our team will review your PR.

A few tips for a smoother review process:

  • If you have a local version of the repo, run pnpm run format to make sure formatting checks pass.
  • Once we've reviewed your PR, please don't trivially merge master (don't click Update branch if there are no merge conflicts to be fixed). This invalidates any pre-merge checks we've run.

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Oct 21, 2026
@vercel

vercel Bot commented Oct 21, 2026

Copy link
Copy Markdown

@jbergstroem is attempting to deploy a commit to the Supabase Team on Vercel.

A member of the Team first needs to authorize it.

@coderabbitai

coderabbitai Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: supabase/supabase/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 9a6ce5e6-a864-41d2-a5a1-19806e597382
📥 Commits

Reviewing files that changed from the base of the PR and between 3af897e and b2c0665.

📒 Files selected for processing: 1
  • apps/docs/styles/globals.css

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

📝 Walkthrough

The stylesheet sets a 5rem minimum width for non-first table cells whose only child is a code element. This keeps short code tokens from collapsing while allowing longer values to wrap.

Changes: Table code-cell width

Layer / File(s) Summary
Code-cell minimum width
apps/docs/styles/globals.css
Non-first table cells containing only a code element now have a 5rem minimum width.

Priority: ⬇️ Low

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Bug fix

Suggested reviewers: antlio

Merge Risk: ⚪ Minimal · up to b2c06

No actionable merge-blocking risk remains.

Pre-merge checks: Passed 5
Check name Status Explanation
Title check Passed The title clearly identifies the Safari/WebKit issue and the documentation table-cell fix. It is concise and directly related to the main change.
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description check Passed The pull request description includes the required Problem, Solution, Review instructions, and Checklist sections. It also provides before-and-after screenshots and preview links. The review procedure…
Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)

Full details: Description check

Explanation

The pull request description includes the required Problem, Solution, Review instructions, and Checklist sections. It also provides before-and-after screenshots and preview links. The review procedure is clear, but it uses one bullet instead of a numbered procedure.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

* a code token prevents that while long values still wrap.
*/
.prose table td:not(:first-child):has(> code:only-child) {
min-width: 5rem;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is quite arbitrary since it will still happen if a string is larger than this width.

Isn't there another css property or hack that would fix it for any string length? 🤔

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I was messing around with different breaks but it then led to other sections becoming too wide / introducing a scrollbar. I believe @antlio was working on a refactor of the tables that might address this in a better way - happy to close in favor of that.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

yes will make sure to push something today then (will ping you there to ensure it works!)

@jbergstroem

Copy link
Copy Markdown
Member Author

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

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants