From 31a375034a40aa905fed16cd3d7f346f0c8abf56 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 18 Jun 2026 21:52:29 +0000 Subject: [PATCH] fix: make road event location map square (1:1 aspect ratio) Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_017tYbcy4UGWxqQbcycyL7Yd --- .../amethyst/ui/note/creators/location/LocationPreviewMap.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/creators/location/LocationPreviewMap.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/creators/location/LocationPreviewMap.kt index 2918045f30..68f9a75992 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/creators/location/LocationPreviewMap.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/creators/location/LocationPreviewMap.kt @@ -21,14 +21,13 @@ package com.vitorpamplona.amethyst.ui.note.creators.location import android.view.MotionEvent +import androidx.compose.foundation.layout.aspectRatio import androidx.compose.foundation.layout.fillMaxWidth -import androidx.compose.foundation.layout.height import androidx.compose.runtime.Composable import androidx.compose.runtime.DisposableEffect import androidx.compose.runtime.remember import androidx.compose.ui.Modifier import androidx.compose.ui.platform.LocalContext -import androidx.compose.ui.unit.dp import androidx.compose.ui.viewinterop.AndroidView import androidx.lifecycle.Lifecycle import androidx.lifecycle.LifecycleEventObserver @@ -107,7 +106,7 @@ fun LocationPreviewMap( } AndroidView( - modifier = modifier.fillMaxWidth().height(180.dp), + modifier = modifier.fillMaxWidth().aspectRatio(1f), factory = { mapView }, update = { map -> val point = GeoPoint(latitude, longitude)