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