Wrap text in poll delegates
BUG: 477629
This commit is contained in:
@@ -33,10 +33,13 @@ MessageDelegate {
|
|||||||
Label {
|
Label {
|
||||||
id: questionLabel
|
id: questionLabel
|
||||||
text: root.content["org.matrix.msc3381.poll.start"]["question"]["body"]
|
text: root.content["org.matrix.msc3381.poll.start"]["question"]["body"]
|
||||||
|
wrapMode: Text.Wrap
|
||||||
|
Layout.fillWidth: true
|
||||||
}
|
}
|
||||||
Repeater {
|
Repeater {
|
||||||
model: root.content["org.matrix.msc3381.poll.start"]["answers"]
|
model: root.content["org.matrix.msc3381.poll.start"]["answers"]
|
||||||
delegate: RowLayout {
|
delegate: RowLayout {
|
||||||
|
Layout.fillWidth: true
|
||||||
CheckBox {
|
CheckBox {
|
||||||
checked: root.pollHandler.answers[currentRoom.localUser.id] ? root.pollHandler.answers[currentRoom.localUser.id].includes(modelData["id"]) : false
|
checked: root.pollHandler.answers[currentRoom.localUser.id] ? root.pollHandler.answers[currentRoom.localUser.id].includes(modelData["id"]) : false
|
||||||
onClicked: root.pollHandler.sendPollAnswer(root.eventId, modelData["id"])
|
onClicked: root.pollHandler.sendPollAnswer(root.eventId, modelData["id"])
|
||||||
@@ -44,9 +47,8 @@ MessageDelegate {
|
|||||||
}
|
}
|
||||||
Label {
|
Label {
|
||||||
text: modelData["org.matrix.msc1767.text"]
|
text: modelData["org.matrix.msc1767.text"]
|
||||||
}
|
|
||||||
Item {
|
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
wrapMode: Text.Wrap
|
||||||
}
|
}
|
||||||
Label {
|
Label {
|
||||||
visible: root.content["org.matrix.msc3381.poll.start"]["kind"] == "org.matrix.msc3381.poll.disclosed" || pollHandler.hasEnded
|
visible: root.content["org.matrix.msc3381.poll.start"]["kind"] == "org.matrix.msc3381.poll.disclosed" || pollHandler.hasEnded
|
||||||
|
|||||||
Reference in New Issue
Block a user