Fix room header in compact window
This commit is contained in:
		| @@ -73,11 +73,12 @@ Rectangle { | ||||
|             Layout.preferredWidth: Math.min( | ||||
|                 implicitWidth, | ||||
|                 row.width - | ||||
|                 row.spacing + | ||||
|                 (showLeftButton ? row.spacing : 0) + | ||||
|                 (showRightButton ? row.spacing : 0) + | ||||
|                 row.spacing - | ||||
|                 (showLeftButton ? row.spacing : 0) - | ||||
|                 (showRightButton ? row.spacing : 0) - | ||||
|                 goToMainPaneButton.width - | ||||
|                 avatar.width - | ||||
|                 encryptionStatusButton.width - | ||||
|                 goToRoomPaneButton.width | ||||
|             ) | ||||
|             Layout.fillHeight: true | ||||
| @@ -99,12 +100,13 @@ Rectangle { | ||||
|             Layout.preferredWidth: Math.min( | ||||
|                 implicitWidth, | ||||
|                 row.width - | ||||
|                 row.spacing + | ||||
|                 (showLeftButton ? row.spacing : 0) + | ||||
|                 (showRightButton ? row.spacing : 0) + | ||||
|                 row.spacing - | ||||
|                 (showLeftButton ? row.spacing : 0) - | ||||
|                 (showRightButton ? row.spacing : 0) - | ||||
|                 goToMainPaneButton.width - | ||||
|                 avatar.width - | ||||
|                 nameLabel.width - | ||||
|                 encryptionStatusButton.width - | ||||
|                 goToRoomPaneButton.width | ||||
|             ) | ||||
|             Layout.fillWidth: ! center | ||||
| @@ -133,10 +135,6 @@ Rectangle { | ||||
|             text: name && topic ? (`${name}<br>${topic}`) : (name || topic) | ||||
|         } | ||||
|  | ||||
|         HSpacer { | ||||
|             visible: center | ||||
|         } | ||||
|  | ||||
|         HButton { | ||||
|             id: encryptionStatusButton | ||||
|             padded: false | ||||
| @@ -167,6 +165,10 @@ Rectangle { | ||||
|             Behavior on Layout.preferredWidth { HNumberAnimation {} } | ||||
|         } | ||||
|  | ||||
|         HSpacer { | ||||
|             visible: center | ||||
|         } | ||||
|  | ||||
|         HButton { | ||||
|             id: goToRoomPaneButton | ||||
|             padded: false | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	