Sidebar size fixes

This commit is contained in:
miruka
2019-07-16 17:08:06 -04:00
parent 96745902f3
commit e173253f74
6 changed files with 30 additions and 19 deletions

View File

@@ -8,7 +8,10 @@ import "Banners"
import "Timeline"
import "RoomSidePane"
HColumnLayout {
HPage {
id: chatPage
onFocusChanged: sendBox.setFocus()
property var roomInfo: null
onRoomInfoChanged: if (! roomInfo) { pageStack.showPage("Default") }
@@ -22,18 +25,15 @@ HColumnLayout {
//category == "Rooms" ?
//Backend.clients.get(userId).roomHasUnknownDevices(roomId) : false
id: chatPage
onFocusChanged: sendBox.setFocus()
RoomHeader {
header: RoomHeader {
id: roomHeader
width: parent.width
displayName: roomInfo.displayName
topic: roomInfo.topic
Layout.fillWidth: true
Layout.preferredHeight: theme.avatar.size
}
page.leftPadding: 0
page.rightPadding: 0
HSplitView {
id: chatSplitView

View File

@@ -17,6 +17,7 @@ HRectangle {
id: roomHeader
color: theme.chat.roomHeader.background
implicitHeight: theme.baseElementsHeight
HRowLayout {
id: row