Skip to content

Commit c7c813f

Browse files
authored
RTL languages support in reader (#494)
The text direction for RTL languages is wrong in reader view. The `dir=auto` attribute will solve this for most cases, for items with a title that starts with RTL language.
1 parent 0e0d541 commit c7c813f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pages/reader/reader.js

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ function getPreviewHTML({ items }) {
4545
for (const item of items) {
4646
const itemContainer = document.createElement("div");
4747
itemContainer.classList = "item";
48+
itemContainer.dir = "auto";
4849

4950
const anchor = item.url ? document.createElement("a") :
5051
document.createElement("strong");

0 commit comments

Comments
 (0)