diff --git a/ui/app/AppLayouts/Chat/ChatLayout.qml b/ui/app/AppLayouts/Chat/ChatLayout.qml index 3cd93e880c..d354d803a0 100644 --- a/ui/app/AppLayouts/Chat/ChatLayout.qml +++ b/ui/app/AppLayouts/Chat/ChatLayout.qml @@ -7,9 +7,10 @@ import "../../../shared/status" import "." import "components" -SplitView { +import StatusQ.Layout 0.1 + +StatusAppTwoPanelLayout { id: chatView - handle: SplitViewHandle {} property alias chatColumn: chatColumn property bool stickersLoaded: false @@ -27,12 +28,19 @@ SplitView { chatColumn.onActivated() } - Loader { + leftPanel: Loader { id: contactColumnLoader - SplitView.preferredWidth: Style.current.leftTabPreferredSize + anchors.fill: parent + anchors.horizontalCenter: parent.horizontalCenter sourceComponent: appSettings.communitiesEnabled && chatsModel.communities.activeCommunity.active ? communtiyColumnComponent : contactsColumnComponent } + rightPanel: ChatColumn { + id: chatColumn + anchors.fill: parent + chatGroupsListViewCount: contactColumnLoader.item.chatGroupsListViewCount + } + Component { id: contactsColumnComponent ContactsColumn { @@ -53,11 +61,6 @@ SplitView { } } - ChatColumn { - id: chatColumn - chatGroupsListViewCount: contactColumnLoader.item.chatGroupsListViewCount - } - Component { id: statusStickerPackClickPopup StatusStickerPackClickPopup{