Skip to content

Commit

Permalink
RTL: Small item tree tag display fixes (zotero#4576)
Browse files Browse the repository at this point in the history
  • Loading branch information
AbeJellinek authored Aug 16, 2024
1 parent 0f866d6 commit 1f26b64
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions scss/components/_item-tree.scss
Original file line number Diff line number Diff line change
Expand Up @@ -102,28 +102,23 @@
}

.colored-tag-swatches {
direction: ltr;
display: flex;

:root:-moz-locale-dir(rtl) & {
transform: scaleX(-1);
flex-direction: row-reverse;
}
}

.icon-item-type + .tag-swatch,
.icon-item-type + .colored-tag-swatches {
margin-left: 4px;
margin-inline-start: 4px;
}

.emoji + .emoji,
.emoji + .colored-tag-swatches,
.colored-tag-swatches + .emoji {
margin-left: 4px;

:root:-moz-locale-dir(rtl) & {
margin-left: 0;
margin-right: 4px;
}
margin-inline-start: 4px;
}

.tag-swatch {
Expand Down Expand Up @@ -156,6 +151,7 @@
background:
url("chrome://zotero/skin/tag-crescent.svg") no-repeat center/100%,
url("chrome://zotero/skin/tag-crescent-border.svg") no-repeat center/0;
// RTL: Parent is flipped, so margin can always be on logical left
margin-left: -0.38461538em;

@include focus-states using($color) {
Expand Down

0 comments on commit 1f26b64

Please sign in to comment.