From f21822aba7f5a15d7df0d6e7b29c4e868863d318 Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Sun, 17 Jul 2022 14:46:18 +0000 Subject: [PATCH] Fix checkbox label on small screen See https://invent.kde.org/frameworks/qqc2-desktop-style/-/merge_requests/173 --- imports/NeoChat/Settings/GeneralSettingsPage.qml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/imports/NeoChat/Settings/GeneralSettingsPage.qml b/imports/NeoChat/Settings/GeneralSettingsPage.qml index d0db4619b..2025c9ff1 100644 --- a/imports/NeoChat/Settings/GeneralSettingsPage.qml +++ b/imports/NeoChat/Settings/GeneralSettingsPage.qml @@ -14,6 +14,7 @@ Kirigami.ScrollablePage { title: i18nc('@title:window', 'General') ColumnLayout { Kirigami.FormLayout { + Layout.fillWidth: true QQC2.CheckBox { Kirigami.FormData.label: i18n("General settings:") text: i18n("Close to system tray") @@ -96,19 +97,16 @@ Kirigami.ScrollablePage { QQC2.CheckBox { id: quickEditCheckbox Layout.maximumWidth: parent.width - contentItem: QQC2.Label { - text: i18n("Use s/text/replacement syntax to edit your last message") - horizontalAlignment: Text.AlignLeft - verticalAlignment: Text.AlignVCenter - leftPadding: quickEditCheckbox.indicator.width + quickEditCheckbox.spacing - wrapMode: QQC2.Label.Wrap - } + text: i18n("Use s/text/replacement syntax to edit your last message") checked: Config.allowQuickEdit enabled: !Config.isAllowQuickEditImmutable onToggled: { Config.allowQuickEdit = checked Config.save() } + + // TODO KF5.97 remove this line + Component.onCompleted: this.contentItem.wrap = QQC2.Label.Wrap } QQC2.CheckBox { text: i18n("Send Typing Notifications") @@ -121,12 +119,16 @@ Kirigami.ScrollablePage { } QQC2.CheckBox { text: i18n("Automatically hide/unhide the room information when resizing the window") + Layout.maximumWidth: parent.width checked: Config.autoRoomInfoDrawer enabled: !Config.isAutoRoomInfoDrawerImmutable onToggled: { Config.autoRoomInfoDrawer = checked Config.save() } + + // TODO KF5.97 remove this line + Component.onCompleted: this.contentItem.wrap = QQC2.Label.Wrap } } }