Skip to content

Commit 35c8f6f

Browse files
committed
Avoid overlap between usedIndicator and text
We only add right margin (and not left margin), because on the left side there is already plenty of space as the icon usually has some padding inherently from its icon.
1 parent e28acec commit 35c8f6f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/qml/PathView.qml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ ListView {
7373
asynchronous: true
7474
}
7575
Label {
76-
anchors { left: iconButton.right; right: parent.right; }
76+
anchors { left: iconButton.right; right: usedIndicator.left; rightMargin: 4; }
7777
text: pretty
7878
elide: Text.ElideRight
7979
height: parent.height
@@ -86,6 +86,7 @@ ListView {
8686
ToolTip.timeout: 2000
8787
}
8888
Rectangle {
89+
id: usedIndicator
8990
anchors { right: parent.right; top: parent.top; bottom: parent.bottom }
9091
width: 8
9192
color: used ? Material.primary : exists ? Material.color(Material.Grey) : Material.color(Material.Red)

0 commit comments

Comments
 (0)