Skip to content

Commit

Permalink
RTL languages support in reader (#494)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sha-265 authored Sep 20, 2024
1 parent 0e0d541 commit c7c813f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pages/reader/reader.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ function getPreviewHTML({ items }) {
for (const item of items) {
const itemContainer = document.createElement("div");
itemContainer.classList = "item";
itemContainer.dir = "auto";

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

0 comments on commit c7c813f

Please sign in to comment.