Title: fix(content): stop wide markdown tables breaking the mobile layout by waleedlatif1 · Pull Request #5984 · simstudioai/sim · GitHub
Open Graph Title: fix(content): stop wide markdown tables breaking the mobile layout by waleedlatif1 · Pull Request #5984 · simstudioai/sim
X Title: fix(content): stop wide markdown tables breaking the mobile layout by waleedlatif1 · Pull Request #5984 · simstudioai/sim
Description: Summary Reported on mobile for /library/ai-agents-in-procurement. Library and blog posts render GFM tables straight into the prose container with no width bound. Comparison tables run up to nine columns, so on a phone the table set the article's content width — body copy was clipped at both edges and the table's right-hand columns were unreachable, with no scroll to get to them 19 of 20 library posts contain a table, so this affected nearly the whole section Wraps tables in an overflow-x-auto container so scrolling is confined to the table's own axis, plus a min-w so columns don't crush to one word per line inside it Blog and library both compile through the same mdxComponents map via createContentRegistry, so one fix covers both surfaces The Tailwind part min-w-[520px] initially did nothing. apps/sim/tailwind.config.ts scanned only app, components, and pages — not lib — so lib/content/mdx.tsx was invisible to Tailwind and any class unique to it was never generated. That was not a stale-cache artifact; I isolated it in a clean worktree with .next removed: computed min-width mdx.tsx fix only 0px mdx.tsx fix + lib/** glob 520px It also means existing styles in that file were already silently dead — list-outside, text-[19px], text-[0.9em], my-0 were all missing from the generated CSS, which is why the file leans on inline style for font sizes. Adding the glob grows the CSS by 538 bytes minified (+0.26%), all additions, nothing removed. Verification Driven in a real browser (Chromium, iPhone viewport + tablet + desktop) against pages with 3, 4, and 9 column tables: viewport page scrolls sideways table wrapped table scrolls iPhone 390px no (was: clipped) yes yes Tablet 768px no yes only the 9-col Desktop 1440px no yes only the 9-col No page scrolls horizontally at any viewport, and narrow tables gain no scrollbar on tablet/desktop, so there's no regression for tables that already fit. Blog verified by temporarily un-drafting blog/copilot locally (it's draft: true, so it 404s otherwise) — same wrapper, same result. Note The scroll edge has no visual affordance (fade or shadow) hinting the table scrolls. Worth a follow-up, but out of scope here. Type of Change Bug fix Testing Tested manually in a browser across three viewports and four posts, as tabled above. Checklist Code follows project style guidelines Self-reviewed my changes Tests added/updated and passing No new warnings introduced I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)
Open Graph Description: Summary Reported on mobile for /library/ai-agents-in-procurement. Library and blog posts render GFM tables straight into the prose container with no width bound. Comparison tables run up to nine c...
X Description: Summary Reported on mobile for /library/ai-agents-in-procurement. Library and blog posts render GFM tables straight into the prose container with no width bound. Comparison tables run up to nine c...
Opengraph URL: https://github.com/simstudioai/sim/pull/5984
X: @github
Domain: github.com
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:0f7e1d31-1cae-f5b1-7073-cc5527610a3d |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C288:267719:9BFE36:D5F943:6AFB4D58 |
| html-safe-nonce | 1f5d8b66232a3677e1aa7a2984353c56980f542f66ac5ca34dbd36fb5469b88c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMjg4OjI2NzcxOTo5QkZFMzY6RDVGOTQzOjZBRkI0RDU4IiwidmlzaXRvcl9pZCI6Ijg5NTMwMjY5MDI3NTA4NzQ5NjgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 6bd7374aa512feeec9d960b19faa51adbc9c727d064fd647860f16c0438b5946 |
| hovercard-subject-tag | pull_request:4146176278 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/simstudioai/sim/pull/5984/files |
| twitter:image | https://avatars.githubusercontent.com/u/40672544?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/40672544?s=400&v=4 |
| og:image:alt | Summary Reported on mobile for /library/ai-agents-in-procurement. Library and blog posts render GFM tables straight into the prose container with no width bound. Comparison tables run up to nine c... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | acf7616d06cc051644705b379878c9bb13dc5e70ecf4ffd9b34140f8ac01d7e1 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/simstudioai/sim git https://github.com/simstudioai/sim.git |
| octolytics-dimension-user_id | 199344406 |
| octolytics-dimension-user_login | simstudioai |
| octolytics-dimension-repository_id | 912559512 |
| octolytics-dimension-repository_nwo | simstudioai/sim |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 912559512 |
| octolytics-dimension-repository_network_root_nwo | simstudioai/sim |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 26504db649b58525278f77a52b80ba5f10d5f4de |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width