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.topMargin: Style.current.padding
anchors.bottom: parent.bottom
anchors.horizontalCenter: parent.horizontalCenter
width: parent.width
leftPadding: Style.current.halfPadding
rightPadding: Style.current.halfPadding
ScrollBar.horizontal.policy: ScrollBar.AlwaysOff
clip: true
contentHeight: communityChatListAndCategories.height
@ -126,10 +122,7 @@ Item {
StatusChatListAndCategories {
id: communityChatListAndCategories
anchors.horizontalCenter: parent.horizontalCenter
width: root.width
draggableItems: communityData.amISectionAdmin
draggableCategories: communityData.amISectionAdmin

View File

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