on xenial help sign in
Add anchors and ellipsis in labels.
49c04daMichał Sawicz
qml/Dash/DashNavigationButton.qml+3
@@ -56,9 +56,12 @@ AbstractButton {
56 Label {
56 Label {
57 anchors.fill: parent
57 anchors.fill: parent
58 anchors.margins: units.gu(2)
58 anchors.margins: units.gu(2)
59+ anchors.rightMargin: units.gu(5)
59 verticalAlignment: Text.AlignVCenter
60 verticalAlignment: Text.AlignVCenter
60 text: root.currentNavigation ? root.currentNavigation.label : ""
61 text: root.currentNavigation ? root.currentNavigation.label : ""
61 color: root.foregroundColor
62 color: root.foregroundColor
63+ elide: Text.ElideRight
64+ maximumLineCount: 1
62 }
65 }
63
66
64 Icon {
67 Icon {