Changed position of "Läs mer" and "Maps" button of some layers.
This commit is contained in:
@@ -189,12 +189,6 @@ fun FornsokDialog(
|
||||
color = MaterialTheme.colorScheme.onSurfaceVariant
|
||||
),
|
||||
actions = {
|
||||
Button(
|
||||
onClick = {
|
||||
AppNavigator.openMap(platLat, platLon, title)
|
||||
}
|
||||
) { Text("Maps") }
|
||||
|
||||
Button(
|
||||
onClick = {
|
||||
val u = link ?: return@Button
|
||||
@@ -202,6 +196,12 @@ fun FornsokDialog(
|
||||
},
|
||||
enabled = link != null
|
||||
) { Text("Läs mer") }
|
||||
|
||||
Button(
|
||||
onClick = {
|
||||
AppNavigator.openMap(platLat, platLon, title)
|
||||
}
|
||||
) { Text("Maps") }
|
||||
}
|
||||
)
|
||||
}
|
||||
@@ -323,12 +323,6 @@ fun DmDialog(
|
||||
color = MaterialTheme.colorScheme.onSurfaceVariant
|
||||
),
|
||||
actions = {
|
||||
Button(
|
||||
onClick = {
|
||||
AppNavigator.openMap(item.lat, item.lon, displayTitle)
|
||||
}
|
||||
) { Text("Maps") }
|
||||
|
||||
Button(
|
||||
onClick = {
|
||||
val u = item.webUrl // Ändrad: objectUrl -> webUrl
|
||||
@@ -338,6 +332,11 @@ fun DmDialog(
|
||||
},
|
||||
enabled = !item.webUrl.isNullOrBlank() // Ändrad: objectUrl -> webUrl
|
||||
) { Text("Läs mer") }
|
||||
Button(
|
||||
onClick = {
|
||||
AppNavigator.openMap(item.lat, item.lon, displayTitle)
|
||||
}
|
||||
) { Text("Maps") }
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user