Skip to content

Build your personal knowledge base with Trilium Notes

style/option card section: fix arrow direction on RTL

Adorian Doran2eff06246364
diff --git a/apps/client/src/widgets/react/Card.css b/apps/client/src/widgets/react/Card.css
index 446c846554..e2d3c764f7 100644
--- a/apps/client/src/widgets/react/Card.css
+++ b/apps/client/src/widgets/react/Card.css
@@ -136,6 +136,15 @@
margin-inline-start: auto;
}
+/* The mark points the way the text runs, so it turns round where the text does. The combo box's is
+ drawn by a pseudo-element, which cannot be named inside `:is()`; outside the narrow layout it has
+ no `content` and so no box for this to turn. */
+body[dir=rtl] .tn-card-chevron,
+body[dir=rtl] .tn-card-section-chevron,
+body[dir=rtl] .tn-card-option::after {
+ transform: scaleX(-1);
+}
+
/* Bootstrap sizes a form control to whatever holds it, so left alone a select or a figure takes the
whole row. Direct children only: a select nested in one (the scale beside a duration) is not ours. */
.tn-card-option {