From 45f9aeb5bfef9dd0f6ee65117dc3525f2e844dce Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Mon, 24 Mar 2025 22:04:19 -0400 Subject: [PATCH] Elide the hover link indicator For long links, this ends up going "off" the window (not really of course.) One good example is Bugzilla filter URLs which are ungodly huge. So eliding these just makes it look better, browsers do this too. (cherry picked from commit ec635d7de326766f76c7fdfe48c879a40ee1e862) --- src/qml/HoverLinkIndicator.qml | 1 + src/qml/Main.qml | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/qml/HoverLinkIndicator.qml b/src/qml/HoverLinkIndicator.qml index 71808f32d..ed8084738 100644 --- a/src/qml/HoverLinkIndicator.qml +++ b/src/qml/HoverLinkIndicator.qml @@ -21,6 +21,7 @@ QQC2.Control { contentItem: QQC2.Label { text: root.text.startsWith("https://matrix.to/") ? "" : root.text + elide: Text.ElideRight Accessible.description: i18nc("@info screenreader", "The currently selected link") } diff --git a/src/qml/Main.qml b/src/qml/Main.qml index 92f8dcae3..be493a58f 100644 --- a/src/qml/Main.qml +++ b/src/qml/Main.qml @@ -292,8 +292,12 @@ Kirigami.ApplicationWindow { HoverLinkIndicator { id: linkIndicator - anchors.bottom: parent.bottom - anchors.left: parent.left + anchors { + bottom: parent.bottom + left: parent.left + right: parent.right + rightMargin: Kirigami.Units.largeSpacing + } } Shortcut {