fix(chatlistcolumn): fixed alignment in chats list

Closes #5211
This commit is contained in:
Alexandra Betouni 2022-05-17 18:20:41 +03:00 committed by Alexandra Betouni
parent c673f8302a
commit e49144d174
2 changed files with 4 additions and 17 deletions

View File

@ -111,13 +111,9 @@ Item {
anchors.top: membershipRequests.bottom anchors.top: membershipRequests.bottom
anchors.topMargin: Style.current.padding anchors.topMargin: Style.current.padding
anchors.bottom: parent.bottom anchors.bottom: parent.bottom
anchors.horizontalCenter: parent.horizontalCenter
width: parent.width width: parent.width
leftPadding: Style.current.halfPadding
rightPadding: Style.current.halfPadding
ScrollBar.horizontal.policy: ScrollBar.AlwaysOff ScrollBar.horizontal.policy: ScrollBar.AlwaysOff
clip: true clip: true
contentHeight: communityChatListAndCategories.height contentHeight: communityChatListAndCategories.height
@ -126,10 +122,7 @@ Item {
StatusChatListAndCategories { StatusChatListAndCategories {
id: communityChatListAndCategories id: communityChatListAndCategories
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
width: root.width
draggableItems: communityData.amISectionAdmin draggableItems: communityData.amISectionAdmin
draggableCategories: communityData.amISectionAdmin draggableCategories: communityData.amISectionAdmin

View File

@ -60,19 +60,16 @@ Item {
RowLayout { RowLayout {
id: searchInputWrapper id: searchInputWrapper
width: parent.width width: 288
height: searchInput.height height: searchInput.height
anchors.top: headline.bottom anchors.top: headline.bottom
anchors.topMargin: 16 anchors.topMargin: 16
anchors.right: parent.right anchors.horizontalCenter: parent.horizontalCenter
anchors.rightMargin: 8
StatusBaseInput { StatusBaseInput {
id: searchInput id: searchInput
Layout.fillWidth: true Layout.fillWidth: true
Layout.alignment: Qt.AlignVCenter | Qt.AlignLeft Layout.alignment: Qt.AlignVCenter
Layout.leftMargin: 17
implicitHeight: 36 implicitHeight: 36
topPadding: 9 topPadding: 9
//% "Search" //% "Search"
@ -161,10 +158,6 @@ Item {
anchors.topMargin: Style.current.padding anchors.topMargin: Style.current.padding
anchors.bottom: root.bottom anchors.bottom: root.bottom
contentHeight: channelList.childrenRect.height + emptyViewAndSuggestions.childrenRect.height contentHeight: channelList.childrenRect.height + emptyViewAndSuggestions.childrenRect.height
anchors.horizontalCenter: parent.horizontalCenter
leftPadding: Style.current.halfPadding
rightPadding: Style.current.halfPadding
ScrollBar.horizontal.policy: ScrollBar.AlwaysOff ScrollBar.horizontal.policy: ScrollBar.AlwaysOff
@ -172,6 +165,7 @@ Item {
StatusChatList { StatusChatList {
id: channelList id: channelList
anchors.horizontalCenter: parent.horizontalCenter
model: root.chatSectionModule.model model: root.chatSectionModule.model
highlightItem: !root.store.openCreateChat highlightItem: !root.store.openCreateChat
onChatItemSelected: { onChatItemSelected: {