fix(CreateChatView): activity center button issues
Also fixed create chat view width to follow its parent Closes #6700
This commit is contained in:
parent
70a1381e86
commit
d1577e4b75
|
@ -58,6 +58,8 @@ Item {
|
|||
property bool contactRequestReceived: root.contactDetails.requestReceived
|
||||
property Component pinnedMessagesListPopupComponent
|
||||
|
||||
property alias activityCenter: activityCenter
|
||||
|
||||
signal openAppSearch()
|
||||
signal openStickerPackPopup(string stickerPackId)
|
||||
|
||||
|
|
|
@ -25,6 +25,7 @@ StatusAppThreePanelLayout {
|
|||
|
||||
property var contactsStore
|
||||
property bool hasAddedContacts: root.contactsStore.myContactsModel.count > 0
|
||||
property alias activityCenter: chatColumn.activityCenter
|
||||
|
||||
property RootStore rootStore
|
||||
|
||||
|
|
|
@ -18,6 +18,7 @@ Page {
|
|||
|
||||
property ListModel contactsModel: ListModel { }
|
||||
property var rootStore
|
||||
property var activityCenter: null
|
||||
property var emojiPopup: null
|
||||
|
||||
Keys.onEscapePressed: Global.closeCreateChatView()
|
||||
|
@ -78,9 +79,10 @@ Page {
|
|||
// TODO: Could it be replaced to `GroupChatPanel`?
|
||||
header: RowLayout {
|
||||
id: headerRow
|
||||
width: parent.width
|
||||
height: tagSelector.height
|
||||
anchors.top: parent.top
|
||||
anchors.topMargin: Style.current.halfPadding
|
||||
height: tagSelector.height
|
||||
clip: true
|
||||
spacing: Style.current.padding
|
||||
StatusTagSelector {
|
||||
|
@ -124,13 +126,15 @@ Page {
|
|||
}
|
||||
|
||||
Item {
|
||||
implicitHeight: 32
|
||||
implicitWidth: 32
|
||||
Layout.preferredWidth: 32
|
||||
Layout.preferredHeight: 32
|
||||
Layout.alignment: Qt.AlignTop
|
||||
|
||||
Layout.topMargin: 5
|
||||
StatusActivityCenterButton {
|
||||
id: notificationButton
|
||||
anchors.right: parent.right
|
||||
width: parent.width
|
||||
height: parent.height
|
||||
tooltip.offset: width/2
|
||||
unreadNotificationsCount: activityCenter.unreadNotificationsCount
|
||||
onClicked: activityCenter.open()
|
||||
}
|
||||
|
|
|
@ -652,13 +652,14 @@ Item {
|
|||
property bool opened: false
|
||||
|
||||
rootStore: chatLayoutContainer.rootStore
|
||||
activityCenter: chatLayoutContainer.chatView.activityCenter
|
||||
emojiPopup: statusEmojiPopup
|
||||
anchors.top: parent.top
|
||||
anchors.topMargin: 8
|
||||
anchors.rightMargin: 8
|
||||
anchors.bottom: parent.bottom
|
||||
anchors.right: parent.right
|
||||
width: chatLayoutContainer.chatView.width - chatLayoutContainer.chatView.leftPanel.width - anchors.rightMargin - anchors.leftMargin
|
||||
width: parent.width - chatLayoutContainer.chatView.leftPanel.width - anchors.rightMargin - anchors.leftMargin
|
||||
visible: createChatView.opened
|
||||
|
||||
Connections {
|
||||
|
|
Loading…
Reference in New Issue