mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Footnote popups: drop justification if RTL content
MuPDF does not handle "text-align: justify" correctly on RTL text: the last line is left-aligned, but it should be right-aligned. Not using justify makes it correctly right align the whole text.
This commit is contained in:
@@ -81,6 +81,11 @@ a { color: black; } /* MuPDF: color: #06C; */
|
||||
* Wikipedia EPUBs, each footnote is a LI */
|
||||
body > li { list-style-type: none; }
|
||||
|
||||
/* MuPDF always aligns the last line to the left when text-align: justify,
|
||||
* which is wrong with RTL. So cancel justification on RTL elements: they
|
||||
* will be correctly aligned to the right */
|
||||
*[dir=rtl] { text-align: initial; }
|
||||
|
||||
/* Remove any (possibly multiple) backlinks in Wikipedia EPUBs footnotes */
|
||||
.noprint { display: none; }
|
||||
]]
|
||||
|
||||
Reference in New Issue
Block a user