site: copy-friendly code/bibtex blocks + add leaderboard /cite page#25
Merged
Conversation
Three small UX fixes across both sites: 1. CodeBlock (marketing + leaderboard): drop the horizontal scrollbar. `overflow-x-auto` becomes `whitespace-pre-wrap break-words` so long lines wrap inside the box instead of forcing the user to scroll. 2. CitationCard: BibTeX is shown by default (no longer behind a <details> collapse), gets a "copy" button, and wraps long entries instead of horizontal-scrolling. One click to copy. 3. Leaderboard /cite/: new page mirroring the marketing site's /cite/, with copy-friendly BibTeX cards for both papers. Added to the leaderboard's top nav. /about/ no longer duplicates the Papers section — it links to /cite/ instead. 4. Leaderboard global.css picks up the .qg-pill / .qg-card utility classes the new CitationCard depends on. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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
Three small UX fixes across the marketing site (querygym.com) and the leaderboard (leaderboard.querygym.com):
1.
CodeBlockno longer horizontally scrolls. Long lines wrap inside the box (whitespace-pre-wrap break-words) so visitors don't have to scroll a small panel to read a single line. Affects the home "Try it in 30 seconds" snippets and every other CodeBlock usage.2.
CitationCardis copy-friendly. BibTeX is now visible by default (no longer hidden behind a<details>collapse), has a dedicatedcopybutton, and wraps long entries instead of scrolling. Visitors can grab a citation in one click. Affects /cite/ on the marketing site.3. Leaderboard gains a
/cite/page mirroring the marketing one, with copy-friendly BibTeX cards for both papers. Added to the leaderboard's top nav. The old Papers section on/about/now links to/cite/instead of duplicating the content.4. Plumbing: the leaderboard's
global.csspicks up the two.qg-pill/.qg-cardutility classes the newCitationCardrelies on (previously defined only on the marketing site).Test Plan
pnpm -F @qg/site build— clean (6 pages).pnpm -F @qg/leaderboard build— clean (1095 pages).🤖 Generated with Claude Code