From 532c46ab111e54a3f666442ec6f9416fbf7ecd2a Mon Sep 17 00:00:00 2001 From: Ramon Mi Date: Fri, 10 Apr 2026 19:41:15 +0800 Subject: [PATCH] fix tag colors order for focused row fixes https://forums.zotero.org/discussion/comment/510193/#Comment_510193 --- scss/components/_item-tree.scss | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/scss/components/_item-tree.scss b/scss/components/_item-tree.scss index 93a5420b25..c85b03696d 100644 --- a/scss/components/_item-tree.scss +++ b/scss/components/_item-tree.scss @@ -104,6 +104,16 @@ transform: scaleX(-1); flex-direction: row-reverse; } + + // Fix the stacking order reversing issue when selected + .tag-swatch { + position: relative; + @for $i from 1 through 9 { + &:nth-child(#{$i}) { + z-index: 10 - $i; + } + } + } } .icon-item-type + .tag-swatch,