fix(Popups): Some modals are misaligned in master

Closes #6002
This commit is contained in:
Alexandra Betouni 2022-06-06 18:42:12 +03:00 committed by Iuri Matias
parent 1d86a963ab
commit a9dabe5df9
2 changed files with 131 additions and 125 deletions

View File

@ -46,8 +46,10 @@ StatusModal {
} }
} }
contentItem: Column { contentItem: Item {
width: popup.width Column {
id: contentItem
anchors.horizontalCenter: parent.horizontalCenter
property alias searchBox: searchBox property alias searchBox: searchBox
Item { Item {
@ -57,6 +59,7 @@ StatusModal {
StatusInput { StatusInput {
id: searchBox id: searchBox
anchors.horizontalCenter: parent.horizontalCenter
input.placeholderText: qsTr("Search for communities or topics") input.placeholderText: qsTr("Search for communities or topics")
input.icon.name: "search" input.icon.name: "search"
} }
@ -139,6 +142,7 @@ StatusModal {
} }
} }
} }
}
rightButtons: [ rightButtons: [
StatusButton { StatusButton {

View File

@ -80,9 +80,10 @@ StatusModal {
} }
} }
contentItem: Column { contentItem: Item {
Column {
id: content id: content
width: root.width anchors.horizontalCenter: parent.horizontalCenter
spacing: d.contentSpacing spacing: d.contentSpacing
StatusInput { StatusInput {
@ -134,6 +135,7 @@ StatusModal {
validationMode: StatusInput.ValidationMode.Always validationMode: StatusInput.ValidationMode.Always
} }
} }
}
rightButtons: [ rightButtons: [
StatusButton { StatusButton {