Compare commits

..
2 Commits
Author SHA1 Message Date
devadmin 3deb764905 Merge pull request 'Katan: zoom the board in portrait' (#41) from feature/catan-portrait-zoom into dev
CI / Build and check (push) Successful in 11m20s
CI / Deploy to Cloudflare Pages (push) Successful in 32s
CI / Build and check (pull_request) Successful in 11m32s
CI / Deploy to Cloudflare Pages (pull_request) Skipped
2026-11-12 19:14:59 -06:00
Claude da772bd326 Katan: pinch-zoom and pan in portrait; max zoom 6x
CI / Build and check (pull_request) Successful in 11m1s
CI / Deploy to Cloudflare Pages (pull_request) Skipped
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01TWwLCrXa9aFVg8dZsCdLBZ
2026-11-13 01:03:36 +00:00
2 changed files with 3 additions and 2 deletions
@@ -214,7 +214,7 @@ fun HudConfirmButtons(
fun ZoomPanBox(
modifier: Modifier = Modifier,
minScale: Float = 1f,
maxScale: Float = 3f,
maxScale: Float = 6f,
content: @Composable () -> Unit,
) {
var scale by remember { mutableFloatStateOf(1f) }
@@ -379,7 +379,8 @@ fun CatanScreen(
players(false)
if (current.isCk) CatanBarbarians(current, style = style)
promptRow()
Box(Modifier.weight(1f).fillMaxWidth(), contentAlignment = Alignment.Center) {
// Pinch to zoom and drag to pan, as in landscape: a wide Seafarers map is small at fit.
ZoomPanBox(Modifier.weight(1f).fillMaxWidth()) {
board(Modifier)
}
handAndActions()