Skip to content

Commit

Permalink
ui: now text will align with image in vertical reader mode
Browse files Browse the repository at this point in the history
  • Loading branch information
plateaukao committed Nov 13, 2024
1 parent f41acad commit 3616b13
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/src/main/java/info/plateaukao/einkbro/view/EBWebView.kt
Original file line number Diff line number Diff line change
Expand Up @@ -1128,6 +1128,11 @@ open class EBWebView(
private const val verticalLayoutCss = "body {\n" +
"-webkit-writing-mode: vertical-rl;\n" +
"writing-mode: vertical-rl;\n" +
"}\n" +
"img {\n" +
"margin: 10px 10px 10px 10px;\n" +
"float: left;\n" +
"display: block;\n" +
"}\n"

private const val horizontalLayoutCss = "body {\n" +
Expand Down

0 comments on commit 3616b13

Please sign in to comment.