QML UI: small adjustment to DiveDetailsView

This reduces the margin to use more of the available space and also makes
the first column slightly wider so the word "Cylinder" isn't broken on a
Nexus 6p.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2016-02-28 17:04:52 +01:00
parent 2bf6f4e45d
commit 0b7be8ec5e

View file

@ -13,8 +13,8 @@ Item {
id: detailsView
property int labelWidth: MobileComponents.Units.gridUnit * 10
property real gridWidth: subsurfaceTheme.columnWidth - 2 * MobileComponents.Units.gridUnit
property real col1Width: gridWidth * 0.20
property real col2Width: gridWidth * 0.40
property real col1Width: gridWidth * 0.23
property real col2Width: gridWidth * 0.37
property real col3Width: gridWidth * 0.20
property real col4Width: gridWidth * 0.20
@ -37,7 +37,7 @@ Item {
top: parent.top
left: parent.left
right: parent.right
margins: MobileComponents.Units.gridUnit
margins: Math.round(MobileComponents.Units.gridUnit / 2)
}
columns: 4
rowSpacing: MobileComponents.Units.smallSpacing * 2
@ -142,7 +142,7 @@ Item {
top: mainLayout.bottom
left: parent.left
right: parent.right
margins: MobileComponents.Units.gridUnit
margins: Math.round(MobileComponents.Units.gridUnit / 2)
}
columns: 4
rowSpacing: MobileComponents.Units.smallSpacing * 2