on xenial help sign in
Some adjustments
9165271Andrea Cimitan
plugins/Dash/CardSocialAttributes.qml+1−11
@@ -44,7 +44,7 @@ Column {
44 leftMargin: units.gu(1)
44 leftMargin: units.gu(1)
45 rightMargin: units.gu(1)
45 rightMargin: units.gu(1)
46 }
46 }
47− columns: 2 + repeater.count % 2
47+ columns: width > units.gu(12) ? 4 : 2
48 rowSpacing: units.gu(2)
48 rowSpacing: units.gu(2)
49
49
50 Repeater {
50 Repeater {
@@ -75,16 +75,6 @@ Column {
75 onClicked: socialAttributes.clicked(modelData["id"]);
75 onClicked: socialAttributes.clicked(modelData["id"]);
76 onPressedChanged: if (pressed && icon.urlTemporaryIcon != "") icon.source = icon.urlTemporaryIcon
76 onPressedChanged: if (pressed && icon.urlTemporaryIcon != "") icon.source = icon.urlTemporaryIcon
77 }
77 }
78− Label {
79− id: label
80− anchors.verticalCenter: parent.verticalCenter
81− text: "label" in modelData && modelData["label"] || "";
82− elide: Text.ElideRight
83− maximumLineCount: 1
84− fontSize: "x-small"
85− font.pixelSize: Math.round(FontUtils.sizeToPixels(fontSize) * fontScale)
86− color: socialAttributes.color
87− }
88 }
78 }
89 }
79 }
90 }
80 }