aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2020-02-09 11:35:21 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-02-09 12:45:55 -0800
commitba201eabc790152d422b9b93095d829fa74ccc31 (patch)
treebede193d880ea2236e44c897ab1ffc23c615a779
parentcaabf1b8889beb53ae1521b61b801fb572f713fd (diff)
downloadsubsurface-ba201eabc790152d422b9b93095d829fa74ccc31.tar.gz
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>
-rw-r--r--mobile-widgets/qml/DiveDetailsView.qml5
1 files changed, 3 insertions, 2 deletions
diff --git a/mobile-widgets/qml/DiveDetailsView.qml b/mobile-widgets/qml/DiveDetailsView.qml
index 6ea44077d..fbbf7e7c7 100644
--- a/mobile-widgets/qml/DiveDetailsView.qml
+++ b/mobile-widgets/qml/DiveDetailsView.qml
@@ -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
}
}