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