From f7bcec04564af252039820db839343cf86048d6d Mon Sep 17 00:00:00 2001 From: Slava Monich Date: Sat, 30 Jan 2021 01:16:13 +0200 Subject: [PATCH] Don't allow ContextMenu to be wider than its ComboBox That looks ridiculous. --- qml/pages/SettingsPage.qml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/qml/pages/SettingsPage.qml b/qml/pages/SettingsPage.qml index bbcf1ab..15f943a 100644 --- a/qml/pages/SettingsPage.qml +++ b/qml/pages/SettingsPage.qml @@ -324,6 +324,8 @@ Page { label: qsTr("Allow chat invites") description: qsTr("Privacy setting for managing whether you can be invited to chats.") menu: ContextMenu { + x: 0 + width: allowChatInvitesComboBox.width MenuItem { text: qsTr("Yes") @@ -356,6 +358,8 @@ Page { label: qsTr("Allow finding by phone number") description: qsTr("Privacy setting for managing whether you can be found by your phone number.") menu: ContextMenu { + x: 0 + width: allowFindingByPhoneNumberComboBox.width MenuItem { text: qsTr("Yes") @@ -382,6 +386,8 @@ Page { label: qsTr("Show link in forwarded messages") description: qsTr("Privacy setting for managing whether a link to your account is included in forwarded messages.") menu: ContextMenu { + x: 0 + width: showLinkInForwardedMessagesComboBox.width MenuItem { text: qsTr("Yes") @@ -414,6 +420,8 @@ Page { label: qsTr("Show phone number") description: qsTr("Privacy setting for managing whether your phone number is visible.") menu: ContextMenu { + x: 0 + width: showPhoneNumberComboBox.width MenuItem { text: qsTr("Yes") @@ -446,6 +454,8 @@ Page { label: qsTr("Show profile photo") description: qsTr("Privacy setting for managing whether your profile photo is visible.") menu: ContextMenu { + x: 0 + width: showProfilePhotoComboBox.width MenuItem { text: qsTr("Yes") @@ -478,6 +488,8 @@ Page { label: qsTr("Show status") description: qsTr("Privacy setting for managing whether your online status is visible.") menu: ContextMenu { + x: 0 + width: showStatusComboBox.width MenuItem { text: qsTr("Yes")