From ba201eabc790152d422b9b93095d829fa74ccc31 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 9 Feb 2020 11:35:21 -0800 Subject: [PATCH] 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 Signed-off-by: Dirk Hohndel --- mobile-widgets/qml/DiveDetailsView.qml | 5 +++-- 1 file 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 } }