mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
mobile/dive-details: remove the redundant 'map it' button
You can already get to the map by either clicking on the location text or on the left action button. This third way to get there reduces the available space for the location text, and can cause positioning issues with very long location texts creating three or more lines of text, which then overwrites the dateRow below. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
c406ad83ea
commit
aeb1794616
1 changed files with 3 additions and 14 deletions
|
@ -41,7 +41,7 @@ Item {
|
|||
anchors {
|
||||
left: parent.left
|
||||
top: parent.top
|
||||
right: gpsButton.left
|
||||
right: parent.right
|
||||
margins: Math.round(Kirigami.Units.gridUnit / 2)
|
||||
}
|
||||
MouseArea {
|
||||
|
@ -53,22 +53,11 @@ Item {
|
|||
}
|
||||
}
|
||||
}
|
||||
TemplateButton {
|
||||
id: gpsButton
|
||||
anchors.right: parent.right
|
||||
anchors.verticalCenter: locationText.verticalCenter
|
||||
enabled: gps !== ""
|
||||
text: qsTr("Map it")
|
||||
onClicked: {
|
||||
showMap()
|
||||
mapPage.centerOnDiveSite(diveSite)
|
||||
}
|
||||
}
|
||||
Row {
|
||||
id: dateRow
|
||||
anchors {
|
||||
left: locationText.left
|
||||
top: gpsButton.bottom
|
||||
top: locationText.bottom
|
||||
topMargin: Kirigami.Units.smallSpacing
|
||||
bottom: numberText.bottom
|
||||
|
||||
|
@ -100,7 +89,7 @@ Item {
|
|||
color: subsurfaceTheme.textColor
|
||||
anchors {
|
||||
right: parent.right
|
||||
top: gpsButton.bottom
|
||||
top: locationText.bottom
|
||||
topMargin: Kirigami.Units.smallSpacing
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue