Skip to content

Commit

Permalink
Fix sidebar text direction
Browse files Browse the repository at this point in the history
This is a regression after johnfactotum/foliate-js@4acfc05
  • Loading branch information
johnfactotum committed Sep 28, 2023
1 parent 516d730 commit 3d6fb73
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/book-viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -907,16 +907,16 @@ export const BookViewer = GObject.registerClass({
?? ''
this._book_author.visible = !!book.metadata?.author?.length

const { textDirection } = reader.view
utils.setDirection(this._book_info, textDirection)
const { language: { direction } } = reader.view
utils.setDirection(this._book_info, direction)
for (const x of [
this._search_view,
this._toc_view,
this._annotation_view,
this._bookmark_view,
]) {
utils.setDirection(x.parent, textDirection)
x.dir = textDirection
utils.setDirection(x.parent, direction)
x.dir = direction
}

this._toc_view.load(book.toc)
Expand Down

0 comments on commit 3d6fb73

Please sign in to comment.