Repository navigation
Shorten the homepage Network step details - #25
Merged
Merged
Conversation
Cut words from the three step cards and give the short homepage links a 24px tap height. Co-authored-by: Rodrigo <rodrigo.ccordoba@hotmail.com>
RodCor
commented
Nov 20, 2026
RodCor
left a comment
Owner
Author
There was a problem hiding this comment.
approved at 047ea7e.
- copy: titles and commands are byte-identical. the two dropped facts are both in the docs: "in the repo" at network/index.mdx:71 ("same project directory") and "copy the code" at :90. no claims changed. network-section.tsx:9-20.
- shots (44631b2): the step cards read cleanly at 1440 and 390, nothing wraps badly, and the section is 1032→1008 and 1968→1923.
- tap targets: the 24px min-height on text links meets WCAG 2.5.8. it's class-only, so install commands and the diagram are untouched. axe 0, verify green.
- perf: lighthouse median 100→99 and tbt 68→93 ms, but benchmarkIndex fell 3796→3164 between runs, so it isn't like-for-like. the diff adds no js and changes no layout (cls 0, lcp 909 ms both), so i accept that it's noise. 99 is still in the good band.
non-blocking, for a follow-up:
- network-section.tsx:9 "The code starts with knet1. The default…": the sentence period swallows the prefix's own dot, so it reads as
knet1. wrap the prefix in<code>like the commands, or rephrase so it doesn't end the sentence. km-text-link inline-flex min-h-[24px] items-centeris now repeated 9 times. a single utility (e.g.km-text-link-target) would keep it consistent. don't fold it intokm-text-linkitself, because inline prose links shouldn't become inline-flex.- about-contact.tsx's three 18–20px links, as you noted.
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
Shortens the three Network step-card
detailstrings on the homepage and raises short links in the layout-owned homepage files to a 24px tap height. Titles andcommandstrings are unchanged. Branched fromorigin/mainat7ce1e46after #24 merged.Detail strings
knet1.,kimetsu network request, andpeer:are unchanged inside the details. No test asserted the old sentences, so no test file changed.One-line reasons
kimetsu network request, and keep the discovery fallback.min-h-[24px].Facts dropped, with citations
content/docs/network/index.mdx:71("Run both sides in the same project directory.")content/docs/network/index.mdx:90("Copy the code (it starts withknet1.).")Join and share drop no facts.
1. Screenshots and heights (measured)
Static
npm run build, served withnpx serve out. Viewport CSS px: 1440 and 390 (window.innerWidth).html { scrollbar-gutter: stable }insrc/app/global.cssreserves 15px, so the laid-out page and the PNG width are 1425 and 375.documentElement.scrollWidthwas 1425 and 375. Both are within the viewport. Network crops are the#networkelement.Images are on orphan branch
cursor/pr-assets-item3at44631b2a891f34862e986a4baa2e3eaac5dea1ba.#networkheight#networkheightPage height is
documentElement.scrollHeight. Network height is#networkoffsetHeight. PNG heights match those numbers.2. Figures and Get started (measured)
On the rendered homepage,
1.77x,22% to 65%, andabout 99%each occur once, and that once is inside#benchmarks, both before and after.#get-startedinitial HTML differs by one class. The mobile tap-target fix changed the install link fromkm-text-link mt-4 inline-blocktokm-text-link mt-4 inline-flex min-h-[24px] items-center. The command block, copy button, and the rest of the section are the same.3. axe-core (measured)
axe-core 4.14.1 on the built homepage. Violations: 0 at 1440 and 390, before and after.
heading-orderpasses at both widths.color-contrastis incomplete (gradient background and overlap), not a violation.4. Lighthouse mobile (measured)
Lighthouse 13.6.0, Chrome 157.0.8103.50 (
HeadlessChrome/157.0.0.0), default mobile emulation, five runs one at a time. Median is the middle value of each metric.Every run had CLS 0. Median LCP stays under 2.5 s. Before runs: 100/907 ms, 100/909 ms, 89/3758 ms, 100/909 ms, 100/907 ms. After runs: 100/908 ms, 98/914 ms, 99/911 ms, 100/909 ms, 99/909 ms. The after
benchmarkIndexis lower (machine load); LCP did not move.5.
npm run check(measured)npm run checkpassed: Biome,tsc --noEmit, 45 tests, andnext buildplus the static-output check.6. Mobile check at 390 (measured, headings judged)
documentElement.scrollWidthis 375, and the rightmost element is at 375. Both are <= 390. No horizontal overflow.about-contact.tsx: "Source code →"section#about a.km-text-link96.08×20, "Related projects →"section#about a.km-text-link122.17×20, "LinkedIn"section#contact a.km-text-link56.38×18.<code>blocks do not overflow (scrollWidthequalsclientWidth, right edge 355). Selecting each block returns the full command. The Get started copy button wrotenpm install -g kimetsu-aipluskimetsu setup --host claude-codeto the clipboard, matching the code block.text-wrap: balancedoes not change that Network heading, andtext-wrap: prettyends on the shorter line "plug into." The heading text stays as it was. "Share, then request" stays on one line.