docs: align the DeepWiki badge with the badge row - #4056
Merged
Conversation
The disclosure rendered below the badge's bottom edge: an <img> aligns to the text baseline, and <sub> drops the following text a further 0.25em, so the caption hung off the badge. GitHub strips inline styles, so no CSS fix is available in a README. Fold the disclosure into the badge itself and move it into the existing badge row. The separate <p> and the <sub> caption both go away, the badge matches the row's height and palette, and the misalignment cannot recur. Generated-by: Claude Code
M4n5ter
approved these changes
Aug 28, 2026
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.
Summary
The third-party AI documentation label sits below the DeepWiki badge's bottom edge instead of on its centre line. An
<img>aligns to the text baseline, so the badge's bottom edge rests on it, and<sub>then drops the following text a further 0.25em. GitHub strips inline styles from READMEs, so this cannot be corrected with CSS.Fold the disclosure into the badge text itself and move the badge into the existing badge row. With no separate text node there is nothing left to misalign, the badge shares the row's 20px height and the
#9BB8F0tone already used for the Windows preview badge, and the extra centred<p>disappears — six lines removed, two added, across both READMEs.The trade is DeepWiki's own badge artwork. The disclosure has to stay visible, and keeping their badge means keeping a second element beside it; carrying the label inside one badge is what removes the failure mode rather than re-styling it.
Refs #4035, refs #4052
Verification
Rendered both READMEs through GitHub's own Markdown API (
gh api /markdown --mode gfm) and compared before/after in light and dark themes at 2.3x. Badge SVGs confirmed at 20px, matching the rest of the row.README.md:README.zh-CN.md:No test suites run: the change is Markdown only and Biome does not cover it.
AI use
Tool(s) and scope: Claude Code diagnosed the baseline cause, authored the README edits and the commit message, and produced the rendered comparison. The human contributor reviewed the diff and the rendered result.
Checklist
Does this PR entail a change in behavior?