Fix missing viewport/head meta on the-fleet pages (mobile rendering) - #200
Open
testtest126 wants to merge 1 commit into
Open
Fix missing viewport/head meta on the-fleet pages (mobile rendering)#200testtest126 wants to merge 1 commit into
testtest126 wants to merge 1 commit into
Conversation
All five /chess/the-fleet/* pages (index, night-two through night-five) were bare fragments with no <!DOCTYPE html>, <html>, or <head> — they started directly at <title>. With no viewport meta, mobile browsers fall back to a 980px desktop layout width and shrink everything to pinch-to-zoom size (confirmed: window.innerWidth reported 980 on a 390px viewport, vs 390 on /chess/, which already has the meta). Wraps each page's existing content in the same scaffold /chess/index.html uses (doctype, <html lang="en">, <head> with charset + viewport, closing </head><body> after the head-level <style> block, </body></html> at the end) — no visible content, styles, or the codex dark theme touched. Verified locally: served the fixed docs/ tree, resized to a 390x844 viewport, and confirmed window.innerWidth now reports 390 (not 980) with the viewport meta present, on both the index and night-four pages. Screenshot confirms the dark codex theme renders unchanged, full-width, readable. Co-Authored-By: Claude Sonnet 5 <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
/chess/the-fleet/*pages (index.html,night-two,night-three,night-four,night-five) were bare fragments — no<!DOCTYPE html>, no<html>, no<head>. They started directly at<title>.grep -L viewportmatched all 5 files;/chess/(which already has the meta) was unaffected./chess/index.htmlalready uses:<!doctype html>,<html lang="en">,<head>with<meta charset="utf-8">+<meta name="viewport" content="width=device-width, initial-scale=1">, then</head><body>right after the page's existing head-level<style>block, and</body></html>at the end of the file. No visible content, CSS, or the "codex" dark theme touched — diff is purely the 10 wrapper lines per file.Verification
grep -L viewport docs/the-fleet/index.html docs/the-fleet/*/index.html→ empty (all 5 now have it).docs/tree locally, resized the browser to 390×844, and readwindow.innerWidth:innerWidthreports 390 (not 980) on boththe-fleet/index.htmlandthe-fleet/night-four/index.html, withdocument.querySelector('meta[name="viewport"]')present andcontent="width=device-width, initial-scale=1".Docs-only, no code/CI surface beyond static HTML.
Test plan
grep -L viewporton all 5 target files → none missinginnerWidth= device width (390) post-fix on 2 of the 5 pages🤖 Generated with Claude Code