mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-25 20:48:52 +03:00
Fix missing back button on spaces page in narrow mode as well as topic not resizing properly
This commit is contained in:
parent
847e52a6af
commit
eb6baf619a
1 changed files with 17 additions and 4 deletions
|
@ -129,8 +129,6 @@ Item {
|
||||||
}
|
}
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
id: contentLayout1
|
|
||||||
|
|
||||||
visible: room != null && room.isSpace
|
visible: room != null && room.isSpace
|
||||||
enabled: visible
|
enabled: visible
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
@ -158,9 +156,8 @@ Item {
|
||||||
}
|
}
|
||||||
|
|
||||||
ScrollView {
|
ScrollView {
|
||||||
//Layout.maximumHeight: 75
|
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
width: parent.width
|
width: timelineView.width - Nheko.paddingLarge * 2
|
||||||
|
|
||||||
TextArea {
|
TextArea {
|
||||||
text: TimelineManager.escapeEmoji(room ? room.roomTopic : "")
|
text: TimelineManager.escapeEmoji(room ? room.roomTopic : "")
|
||||||
|
@ -188,6 +185,22 @@ Item {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ImageButton {
|
||||||
|
id: backToRoomsButton
|
||||||
|
|
||||||
|
anchors.top: parent.top
|
||||||
|
anchors.left: parent.left
|
||||||
|
anchors.margins: Nheko.paddingMedium
|
||||||
|
width: Nheko.avatarSize
|
||||||
|
height: Nheko.avatarSize
|
||||||
|
visible: room != null && room.isSpace && showBackButton
|
||||||
|
enabled: visible
|
||||||
|
image: ":/icons/icons/ui/angle-pointing-to-left.png"
|
||||||
|
ToolTip.visible: hovered
|
||||||
|
ToolTip.text: qsTr("Back to room list")
|
||||||
|
onClicked: Rooms.resetCurrentRoom()
|
||||||
|
}
|
||||||
|
|
||||||
NhekoDropArea {
|
NhekoDropArea {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
roomid: room ? room.roomId() : ""
|
roomid: room ? room.roomId() : ""
|
||||||
|
|
Loading…
Reference in a new issue