RTL: Put creator commas on left, use locale character

This commit is contained in:
Abe Jellinek 2024-01-10 12:01:54 -05:00 committed by Dan Stillman
parent ef1f64058e
commit 2ab1bf6e11
2 changed files with 5 additions and 2 deletions

View file

@ -225,6 +225,9 @@
Zotero.Prefs.registerObserver('fontSize', () => { Zotero.Prefs.registerObserver('fontSize', () => {
this.refresh(); this.refresh();
}); });
this.style.setProperty('--comma-character',
"'" + Zotero.getString('punctuation.comma') + "'");
} }
destroy() { destroy() {

View file

@ -193,9 +193,9 @@ item-box {
*[fieldMode="0"]:first-child { *[fieldMode="0"]:first-child {
position: relative; position: relative;
&::after { &::after {
content: ","; content: var(--comma-character, ',');
position: absolute; position: absolute;
right: 0; inset-inline-end: 0;
bottom: var(--editable-text-padding-block); bottom: var(--editable-text-padding-block);
} }
&.focused::after { &.focused::after {