fix(PublicChatPopup): sug channels were missaligned

Closes #6632
This commit is contained in:
Alexandra Betouni 2022-08-03 17:04:01 +03:00 committed by Alexandra Betouni
parent 489cf935c6
commit 6c562580ba
2 changed files with 2 additions and 7 deletions

View File

@ -26,11 +26,9 @@ Repeater {
font.pixelSize: 16
}
Flow {
width: parent.width
anchors.top: sectionTitle.bottom
anchors.topMargin: Style.current.smallPadding
Layout.fillHeight: true
Layout.fillWidth: true
width: parent.width
spacing: 10
Repeater {
model: modelData.channels

View File

@ -83,11 +83,8 @@ ModalPopup {
anchors.left: parent.left
anchors.right: parent.right
anchors.bottom: parent.bottom
ScrollBar.horizontal.policy: ScrollBar.AlwaysOff
ScrollBar.vertical.policy: ScrollBar.AlwaysOn
Layout.fillHeight: true
Layout.fillWidth: true
contentHeight: {
var totalHeight = 0
for (let i = 0; i < sectionRepeater.count; i++) {
@ -98,7 +95,7 @@ ModalPopup {
SuggestedChannelsPanel {
id: sectionRepeater
width: parent.width
width: sview.width
onSuggestedMessageClicked: {
popup.suggestedMessageClicked(channel);
}