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:
committed by
Tobias Fella
parent
6961442090
commit
45f9aeb5bf
@@ -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")
|
||||
}
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user