Move tags back to beginning of item rows #3781 (#3839)

To get the current behaviour (tags after title), set
pref `extensions.zotero.ui.tagsAfterTitle` to true.
This commit is contained in:
Tom Najdek 2024-03-13 00:02:52 +01:00 committed by GitHub
parent 8e5732cf9c
commit f8d59d14bc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 11 additions and 1 deletions

View file

@ -2616,7 +2616,12 @@ var ItemTree = class ItemTree extends LibraryTree {
textSpan.dir = 'auto';
textSpan.setAttribute('aria-label', textSpanAriaLabel);
span.append(retracted, textSpan, ...tagSpans);
if (Zotero.Prefs.get('ui.tagsAfterTitle')) {
span.append(retracted, textSpan, ...tagSpans);
}
else {
span.append(retracted, ...tagSpans, textSpan);
}
return span;
}

View file

@ -103,6 +103,11 @@
transform: scaleX(-1);
display: flex;
}
.icon-item-type + .tag-swatch,
.icon-item-type + .colored-tag-swatches {
margin-left: 4px;
}
.tag-swatch {
display: inline-block;