diff options
author | Malte E <malte.e@mailbox.org> | 2022-03-04 11:19:58 +0100 |
---|---|---|
committer | Malte E <malte.e@mailbox.org> | 2022-03-04 11:19:58 +0100 |
commit | 8658801839637fcc1486fe82ed345bdb98378c2c (patch) | |
tree | 98bdcc196847882312d74e0dc1509528470fbb5d /resources/qml/dialogs/RoomSettings.qml | |
parent | fix text color and button, copy roomID on click (diff) | |
download | nheko-8658801839637fcc1486fe82ed345bdb98378c2c.tar.xz |
hopfefully the button works now
Diffstat (limited to '')
-rw-r--r-- | resources/qml/dialogs/RoomSettings.qml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/resources/qml/dialogs/RoomSettings.qml b/resources/qml/dialogs/RoomSettings.qml index 855adc2a..d885e2fb 100644 --- a/resources/qml/dialogs/RoomSettings.qml +++ b/resources/qml/dialogs/RoomSettings.qml @@ -144,8 +144,8 @@ ApplicationWindow { property bool cut: implicitHeight > 100 property bool showMore clip: true - height: cut && !showMore? 100 : undefined - Layout.preferredHeight: height + Layout.maximumHeight: showMore? Number.POSITIVE_INFINITY : 100 + Layout.preferredHeight: implicitHeight Layout.alignment: Qt.AlignHCenter Layout.fillWidth: true Layout.leftMargin: Nheko.paddingLarge @@ -373,8 +373,8 @@ ApplicationWindow { } Button { id: showMoreButton - x: contentLayout1.showMorePos.x - y: Math.min(contentLayout1.showMorePos.y-flickable.contentY,flickable.height-height) + anchors.horizontalCenter: flickable.horizontalCenter + y: Math.min(showMorePlaceholder.y+contentLayout1.y-flickable.contentY,flickable.height-height) visible: roomTopic.cut text: roomTopic.showMore? "show less" : "show more" onClicked: {roomTopic.showMore = !roomTopic.showMore |