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