[web] center standalone homepage content #196

Merged
eleith merged 1 commits from fix/markdown-only-home into main 2026-11-05 05:15:04 +00:00

Summary

Center custom homepage Markdown vertically in the viewport space below navigation when both pages.home.latest and pages.home.random are disabled.

  • Keep the existing 800px reading width, text alignment and navigation.
  • Derive centerContent from nonempty rendered Markdown and configured switches—not whether enabled collections happen to be empty.
  • Preserve normal flow for stock/mixed homepages and absent/empty custom content.
  • Use minimum viewport height so long Markdown grows and remains scrollable rather than clipping.
  • Update existing loader coverage, remove trivial hydration-forwarding assertions and include a web patch changeset. No new dependencies or browser-test cases.

Verification

  • 6 homepage loader tests passed; Svelte check: 0 errors, 0 warnings.
  • Full web lint, changeset formatting and staged whitespace passed.
  • Fresh production build and 5 selected existing native homepage cases passed (58 HTTP cases skipped).
  • Manual checks against the real production build at 1280×900 and 390×844 verified short-content centering, long-content scrolling and reachable final content, and unchanged stock/mixed/enabled-empty layouts without horizontal overflow.
  • Correctness review found no material issues; approved readability and absent/empty-content test findings were addressed, then focused tests/type/lint checks rerun. Geometry was not redundantly rerun after the behavior-identical const extraction and test-only additions.

Browser measurements concern the Markdown block, not center-aligned text. Actual CI/container results remain to be confirmed.

## Summary Center custom homepage Markdown vertically in the viewport space below navigation when both `pages.home.latest` and `pages.home.random` are disabled. - Keep the existing 800px reading width, text alignment and navigation. - Derive `centerContent` from nonempty rendered Markdown and configured switches—not whether enabled collections happen to be empty. - Preserve normal flow for stock/mixed homepages and absent/empty custom content. - Use minimum viewport height so long Markdown grows and remains scrollable rather than clipping. - Update existing loader coverage, remove trivial hydration-forwarding assertions and include a web patch changeset. No new dependencies or browser-test cases. ## Verification - 6 homepage loader tests passed; Svelte check: 0 errors, 0 warnings. - Full web lint, changeset formatting and staged whitespace passed. - Fresh production build and 5 selected existing native homepage cases passed (58 HTTP cases skipped). - Manual checks against the real production build at 1280×900 and 390×844 verified short-content centering, long-content scrolling and reachable final content, and unchanged stock/mixed/enabled-empty layouts without horizontal overflow. - Correctness review found no material issues; approved readability and absent/empty-content test findings were addressed, then focused tests/type/lint checks rerun. Geometry was not redundantly rerun after the behavior-identical const extraction and test-only additions. Browser measurements concern the Markdown block, not center-aligned text. Actual CI/container results remain to be confirmed.
eleith-gitea-agent Bot added 1 commit 2026-11-05 05:12:55 +00:00
[web] center standalone homepage content
ci/woodpecker/pr/web Pipeline was successful
ci/woodpecker/push/web Pipeline was successful
b89f433474
eleith merged commit b89f433474 into main 2026-11-05 05:15:04 +00:00
eleith deleted branch fix/markdown-only-home 2026-11-05 05:15:04 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: eleith/luzzle#196