mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
fix vertical alignment in divelist
left and right of the items and the headings are now synced and consistent with other pages. Signed-off-by: Sebastian Kügler <sebas@kde.org>
This commit is contained in:
parent
6b3df6597b
commit
946cc5fec2
1 changed files with 4 additions and 4 deletions
|
@ -20,6 +20,7 @@ MobileComponents.Page {
|
||||||
checked: diveListView.currentIndex == model.index
|
checked: diveListView.currentIndex == model.index
|
||||||
|
|
||||||
property real detailsOpacity : 0
|
property real detailsOpacity : 0
|
||||||
|
property int horizontalPadding: MobileComponents.Units.gridUnit / 2 - MobileComponents.Units.smallSpacing + 1
|
||||||
|
|
||||||
//When clicked, the mode changes to details view
|
//When clicked, the mode changes to details view
|
||||||
|
|
||||||
|
@ -56,7 +57,7 @@ MobileComponents.Page {
|
||||||
maximumLineCount: 1 // needed for elide to work at all
|
maximumLineCount: 1 // needed for elide to work at all
|
||||||
anchors {
|
anchors {
|
||||||
left: parent.left
|
left: parent.left
|
||||||
leftMargin: MobileComponents.Units.gridUnit / 2
|
leftMargin: horizontalPadding
|
||||||
top: parent.top
|
top: parent.top
|
||||||
right: dateLabel.left
|
right: dateLabel.left
|
||||||
}
|
}
|
||||||
|
@ -74,9 +75,9 @@ MobileComponents.Page {
|
||||||
Row {
|
Row {
|
||||||
anchors {
|
anchors {
|
||||||
left: parent.left
|
left: parent.left
|
||||||
leftMargin: MobileComponents.Units.gridUnit / 2
|
leftMargin: horizontalPadding
|
||||||
right: parent.right
|
right: parent.right
|
||||||
rightMargin: MobileComponents.Units.gridUnit / 2
|
rightMargin: horizontalPadding
|
||||||
bottom: numberText.bottom
|
bottom: numberText.bottom
|
||||||
}
|
}
|
||||||
MobileComponents.Label {
|
MobileComponents.Label {
|
||||||
|
@ -107,7 +108,6 @@ MobileComponents.Page {
|
||||||
opacity: 0.6
|
opacity: 0.6
|
||||||
anchors {
|
anchors {
|
||||||
right: parent.right
|
right: parent.right
|
||||||
rightMargin: MobileComponents.Units.gridUnit / 2
|
|
||||||
top: locationText.bottom
|
top: locationText.bottom
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue