From 08723d5503e602b30683daf713787f74dd4b5745 Mon Sep 17 00:00:00 2001 From: Mike Noe Date: Sat, 16 Mar 2024 08:38:32 -0400 Subject: [PATCH] smsapp: Clean up conversation list title elements Items in the title are underlapping the chat pane. Remove fake elipses from placeholder text and remove New button text. --- smsapp/qml/ConversationList.qml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/smsapp/qml/ConversationList.qml b/smsapp/qml/ConversationList.qml index 00b912403..bec40e0cb 100644 --- a/smsapp/qml/ConversationList.qml +++ b/smsapp/qml/ConversationList.qml @@ -103,16 +103,14 @@ Kirigami.ScrollablePage titleDelegate: RowLayout { id: headerLayout - width: parent.width Keys.forwardTo: [filter] Kirigami.SearchField { /** * Used as the filter of the list of messages */ id: filter - placeholderText: i18nd("kdeconnect-sms", "Search or start conversation...") Layout.fillWidth: true - Layout.fillHeight: true + placeholderText: i18nd("kdeconnect-sms", "Search or start a conversation") onTextChanged: { currentSearchText = filter.text; if (filter.text != "") { @@ -142,8 +140,6 @@ Kirigami.ScrollablePage Button { id: newButton icon.name: "list-add" - text: i18nd("kdeconnect-sms", "New") - visible: true enabled: SmsHelper.isAddressValid(filter.text) && deviceConnected ToolTip.visible: hovered ToolTip.delay: Qt.styleHints.mousePressAndHoldInterval @@ -230,7 +226,7 @@ Kirigami.ScrollablePage Layout.minimumWidth: size selected: (listItem.highlighted || listItem.checked || listItem.pressed) opacity: 1 - visible: source != undefined + visible: source !== undefined } // Keep the currently-open chat highlighted even if this element is not focused