Limit max height of room settings topic area
This commit is contained in:
parent
3314489a26
commit
e5d64f76b7
|
@ -1,11 +1,15 @@
|
||||||
// SPDX-License-Identifier: LGPL-3.0-or-later
|
// SPDX-License-Identifier: LGPL-3.0-or-later
|
||||||
|
|
||||||
import QtQuick 2.12
|
import QtQuick 2.12
|
||||||
|
import QtQuick.Controls 2.12
|
||||||
import QtQuick.Layouts 1.12
|
import QtQuick.Layouts 1.12
|
||||||
import "../../../Base"
|
import "../../../Base"
|
||||||
import "../../../Base/ButtonLayout"
|
import "../../../Base/ButtonLayout"
|
||||||
|
|
||||||
HFlickableColumnPage {
|
HFlickableColumnPage {
|
||||||
|
id: settingsView
|
||||||
|
|
||||||
|
|
||||||
property var saveFuture: null
|
property var saveFuture: null
|
||||||
|
|
||||||
readonly property bool anyChange:
|
readonly property bool anyChange:
|
||||||
|
@ -113,17 +117,23 @@ HFlickableColumnPage {
|
||||||
|
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
||||||
HTextArea {
|
ScrollView {
|
||||||
// TODO: limit height
|
clip: true
|
||||||
width: parent.width
|
width: parent.width
|
||||||
placeholderText: qsTr("This room is about...")
|
height:
|
||||||
defaultText: chat.roomInfo.plain_topic
|
Math.min(topicAreaIn.implicitHeight, settingsView.height / 2)
|
||||||
enabled: chat.roomInfo.can_set_topic
|
|
||||||
|
|
||||||
focusItemOnTab:
|
HTextArea {
|
||||||
encryptCheckBox.checked ?
|
id: topicAreaIn
|
||||||
requireInviteCheckbox :
|
placeholderText: qsTr("This room is about...")
|
||||||
encryptCheckBox
|
defaultText: chat.roomInfo.plain_topic
|
||||||
|
enabled: chat.roomInfo.can_set_topic
|
||||||
|
|
||||||
|
focusItemOnTab:
|
||||||
|
encryptCheckBox.checked ?
|
||||||
|
requireInviteCheckbox :
|
||||||
|
encryptCheckBox
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user