Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

web: auto detect text direction where possible

Abdullah Attab2a3949ad054
diff --git a/apps/web/src/components/editor/title-box.tsx b/apps/web/src/components/editor/title-box.tsx
index ed2b81d16..aa6f96b60 100644
--- a/apps/web/src/components/editor/title-box.tsx
+++ b/apps/web/src/components/editor/title-box.tsx
@@ -74,6 +74,7 @@ function TitleBox(props: TitleBoxProps) {
className="editorTitle"
placeholder={"Note title"}
readOnly={readonly}
+ dir="auto"
sx={{
p: 0,
fontFamily: getFontById(editorConfig.fontFamily)?.font || "heading",
diff --git a/apps/web/src/components/list-item/index.tsx b/apps/web/src/components/list-item/index.tsx
index ff4862c25..6e65af99d 100644
--- a/apps/web/src/components/list-item/index.tsx
+++ b/apps/web/src/components/list-item/index.tsx
@@ -112,6 +112,7 @@ function ListItem(props: ListItemProps) {
py={1}
mb={isCompact ? 0 : 1}
tabIndex={-1}
+ dir="auto"
sx={{
height: "inherit",
cursor: "pointer",