mobile UI: fix alignment issue in dive details view

The 'Map it' button could overlap with the dive number below, depending on font
size. This fixes the issue.

Reported-by: Peter Reinold <mcc.nash@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2020-02-09 11:35:21 -08:00
parent caabf1b888
commit ba201eabc7

View file

@ -59,6 +59,7 @@ Item {
TemplateButton {
id: gpsButton
anchors.right: parent.right
anchors.verticalCenter: locationText.verticalCenter
enabled: gps !== ""
text: qsTr("Map it")
onClicked: {
@ -70,7 +71,7 @@ Item {
id: dateRow
anchors {
left: locationText.left
top: locationText.bottom
top: gpsButton.bottom
topMargin: Kirigami.Units.smallSpacing
bottom: numberText.bottom
@ -102,7 +103,7 @@ Item {
color: subsurfaceTheme.textColor
anchors {
right: parent.right
top: locationText.bottom
top: gpsButton.bottom
topMargin: Kirigami.Units.smallSpacing
}
}