Repository navigation
Code: Matched GitHub's branch row and README box - #98
Merged
Merged
Conversation
Measured against github.com (signed in) from 1280 down to 400px: - Branches and Tags links: weight 500 with a 600 count, a 21px line and an invisible 1px border, so their icons sit where GitHub's do. - The Code button collapses to its icon and caret (49px) beside Add file, with a 16px caret. - The row narrows in GitHub's steps: Add file becomes a 34px "+" below 1280px, the branch and tag counts go below 1080px, Go to file becomes an 87px button below 1012px, and both move into the "…" menu below 544px instead of 768px. - README box header: underline tabs for the README (Forgejo's "README") and, at the repository root, its code of conduct, contributing guide, license and security policy, which open the file; an outline menu (the shared dropdown) lists the rendered README's headings by level. Below 544px the README box reaches the screen edges. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
whereareiam
force-pushed
the
feat/code-page-github
branch
from
October 22, 2026 17:21
643d02d to
a6bb3b6
Compare
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.
Stacked on #97; review that first. This PR only contains the Code page changes.
What changes
The Code page's own controls now match GitHub, signed in, measured from 1280 down to 400px.
Narrower screens
The community-file tabs open the file instead of switching the box in place, because Forgejo does not render those files on this page. "Contributing", "Code of conduct" and "Security" are English (Forgejo has no strings for them); "README" and "License" are Forgejo's. "Branches/Tags" keep Forgejo's lowercase wording, which is translated.
The outline menu uses the shared dropdown; its items come from the rendered README's headings when it first opens, since Forgejo has no outline data.
Before and after
Dark mode, in the dev preview: the branch row and the README box header.
Checks
bun vitest: 406 tests pass;tsc -band Prettier pass.bun lintcould not run locally: the installed typescript-eslint does not support TypeScript 7.🤖 Generated with Claude Code