From 3616b13ae513725fc1be5e68b049ca327759f1c8 Mon Sep 17 00:00:00 2001 From: Daniel Kao Date: Wed, 13 Nov 2024 22:39:27 +0800 Subject: [PATCH] ui: now text will align with image in vertical reader mode --- app/src/main/java/info/plateaukao/einkbro/view/EBWebView.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/src/main/java/info/plateaukao/einkbro/view/EBWebView.kt b/app/src/main/java/info/plateaukao/einkbro/view/EBWebView.kt index ff0bb7dc..e8989681 100755 --- a/app/src/main/java/info/plateaukao/einkbro/view/EBWebView.kt +++ b/app/src/main/java/info/plateaukao/einkbro/view/EBWebView.kt @@ -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" +