docs: lay README badges in a one-row table to keep them on a single line#68
Merged
Conversation
…e line
The Marketplace listing for the polygraph-mcp-gate action renders the repo
README under a stylesheet that sets `img { display: block }`, which stacked the
plain inline badge row into a tall vertical column. Table cells lay out
horizontally regardless of the image display, so a single-row table keeps all
badges on one line on both the repo page and the Marketplace listing. GitHub
strips inline styles, so the cells keep their default 1px border.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TZcTQCDwyFqdh59fPWDJAr
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What
Lays the five README badges out in a one-row HTML table (one badge per cell) instead of a plain inline badge line.
Why
README.mdis rendered on two surfaces: the repo homepage and thepolygraph-mcp-gateMarketplace listing. Inspecting the live Marketplace DOM showed its stylesheet setsimg { display: block }on the README body — which forced every badge onto its own line, so the badges rendered as a tall vertical column there (even on a single markdown line). GitHub strips inline styles, so the imagedisplaycan't be overridden directly.Table cells lay out horizontally regardless of the child image's
display, so a single-row table keeps all badges on one line. Verified by injecting the same table into the live Marketplace page: all five badges measured on the same line.Tradeoff
GitHub forces a default
1pxborder + padding on table cells and strips theborder="0"attribute / inline styles, so the badges sit in faint bordered chips on both surfaces (subtle on the dark theme). This replaces the previous borderless inline row on the repo page — accepted in exchange for a single, non-stacked line on the Marketplace, and it avoids splitting the action into a separate repo (which would break thepolygraphso/litmus@v1handle).Badges unchanged: npm · CI · Apache-2.0 · Glama · graded-by-polygraph. README-only; no version bump or publish.
Verification