Make settings combobox width dependent on content

fixes #1164
dbus-async-connect
Nicolas Werner 1 year ago
parent 05f1f8f556
commit 8259891a42
No known key found for this signature in database
GPG Key ID: C8D75E610773F2D9
  1. 5
      resources/qml/CommunitiesList.qml
  2. 1
      resources/qml/pages/UserSettingsPage.qml

@ -147,10 +147,9 @@ Page {
url: {
if (model.avatarUrl.startsWith("mxc://"))
return model.avatarUrl.replace("mxc://", "image://MxcImage/");
else if (model.avatarUrl.length > 0) {
console.log("image://colorimage/" + model.avatarUrl + "?" + communityItem.unimportantText);
else if (model.avatarUrl.length > 0)
return model.avatarUrl;
} else
else
return "";
}
width: avatarSize

@ -99,6 +99,7 @@ Rectangle {
model: r.model.values
currentIndex: r.model.value
onCurrentIndexChanged: r.model.value = currentIndex
implicitContentWidthPolicy: ComboBox.WidestTextWhenCompleted
WheelHandler{} // suppress scrolling changing values
}

Loading…
Cancel
Save