Skip to content

fix(css): centre capped-width pages on wide windows#100

Merged
ScottMorris merged 1 commit into
mainfrom
fix/issue-91-page-centering
Jun 25, 2026
Merged

fix(css): centre capped-width pages on wide windows#100
ScottMorris merged 1 commit into
mainfrom
fix/issue-91-page-centering

Conversation

@ScottMorris

Copy link
Copy Markdown
Contributor

Fixes #91.

Summary

  • All seven page root classes (build, chapters, logs, overview, planner, settings, titles) had a max-width but no margin-inline: auto, so content was pinned to the left edge on wide windows instead of centring.
  • Added margin-inline: auto to each root class. One-line change per file.

Test plan

  • Open the app on a wide window (>1200 px); all pages should be centred with equal margins on both sides.
  • Narrower windows (below each page's max-width) should be unaffected — content fills the available width as before.

🤖 Generated with Claude Code

https://claude.ai/code/session_01L3tSFK3P9vGwbNNtb4AYQG

All seven page root classes had a `max-width` but no `margin-inline: auto`,
so content was pinned to the left edge instead of centring when the window
was wider than the cap.

Affected pages: Build, Chapters, Logs, Overview, Planner, Settings, Titles.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L3tSFK3P9vGwbNNtb4AYQG
@ScottMorris

Copy link
Copy Markdown
Contributor Author

@codex review

@github-actions

Copy link
Copy Markdown

Spindle JS tests

233 tests  ±0   233 ✅ ±0   5s ⏱️ ±0s
 24 suites ±0     0 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit 5ba591b. ± Comparison against base commit fcbdbfe.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep them coming!

Reviewed commit: 5ba591b884

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@github-actions

Copy link
Copy Markdown

Spindle Rust tests

222 tests  ±0   222 ✅ ±0   2s ⏱️ ±0s
  2 suites ±0     0 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit 5ba591b. ± Comparison against base commit fcbdbfe.

@ScottMorris ScottMorris merged commit 4c911f8 into main Jun 25, 2026
8 checks passed
@ScottMorris ScottMorris deleted the fix/issue-91-page-centering branch June 25, 2026 05:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Capped-width pages pin content left instead of centering on wide/maximized windows

1 participant