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 ec635d7de3)
This commit is contained in:
Joshua Goins
2025-03-24 22:04:19 -04:00
committed by Tobias Fella
parent 6961442090
commit 45f9aeb5bf
2 changed files with 7 additions and 2 deletions

View File

@@ -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")
}

View File

@@ -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 {