feat: add maximum content width constraint for wide displays (Closes #2) #41

Merged
shahondin1624 merged 1 commits from feature/issue-2-maximum-content-width-constraint into main 2026-03-13 12:55:51 +01:00

Summary

  • Add MAX_CONTENT_WIDTH = 1200.dp to UiConstants
  • Wrap scaffold content area in a centered Box with widthIn(max = MAX_CONTENT_WIDTH) so content doesn't stretch on ultra-wide monitors
  • Works on all targets (Desktop, Web, Android, iOS)

Closes #2

Test plan

  • JS compilation verified
  • All existing tests still pass (12 tests, only pre-existing ComposeTest failure)
## Summary - Add `MAX_CONTENT_WIDTH = 1200.dp` to `UiConstants` - Wrap scaffold content area in a centered `Box` with `widthIn(max = MAX_CONTENT_WIDTH)` so content doesn't stretch on ultra-wide monitors - Works on all targets (Desktop, Web, Android, iOS) Closes #2 ## Test plan - [x] JS compilation verified - [x] All existing tests still pass (12 tests, only pre-existing ComposeTest failure)
shahondin1624 added 1 commit 2026-03-13 12:55:47 +01:00
Add MAX_CONTENT_WIDTH (1200dp) to UiConstants and wrap scaffold content
in a centered Box with widthIn(max) to prevent uncomfortable stretching
on ultra-wide monitors.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
shahondin1624 merged commit 27756f4dde into main 2026-03-13 12:55:51 +01:00
shahondin1624 deleted branch feature/issue-2-maximum-content-width-constraint 2026-03-13 12:55:51 +01:00
Sign in to join this conversation.