Fixes #223. Fixes internal reader issue on 4.2.2
This commit is contained in:
parent
2be872e61e
commit
29d1e38340
@ -401,34 +401,41 @@ class ArticleFragment : Fragment() {
|
|||||||
|
|
||||||
rootView.webcontent.loadDataWithBaseURL(
|
rootView.webcontent.loadDataWithBaseURL(
|
||||||
baseUrl,
|
baseUrl,
|
||||||
"""<style>
|
"""<html>
|
||||||
|img {
|
|<head>
|
||||||
|
| <style>
|
||||||
|
| img {
|
||||||
| display: inline-block;
|
| display: inline-block;
|
||||||
| height: auto;
|
| height: auto;
|
||||||
| width: 100%;
|
| width: 100%;
|
||||||
| max-width: 100%;
|
| max-width: 100%;
|
||||||
|}
|
| }
|
||||||
|a {
|
| a {
|
||||||
| color: $stringColor !important;
|
| color: $stringColor !important;
|
||||||
|}
|
| }
|
||||||
|*:not(a) {
|
| *:not(a) {
|
||||||
| color: $stringTextColor;
|
| color: $stringTextColor;
|
||||||
|}
|
| }
|
||||||
|* {
|
| * {
|
||||||
| font-size: ${fontSize.toPx}px;
|
| font-size: ${fontSize.toPx}px;
|
||||||
| text-align: justify;
|
| text-align: justify;
|
||||||
| word-break: break-word;
|
| word-break: break-word;
|
||||||
| overflow:hidden;
|
| overflow:hidden;
|
||||||
|}
|
| }
|
||||||
|a, pre, code {
|
| a, pre, code {
|
||||||
| text-align: left;
|
| text-align: left;
|
||||||
|}
|
| }
|
||||||
|pre, code {
|
| pre, code {
|
||||||
| white-space: pre-wrap;
|
| white-space: pre-wrap;
|
||||||
| width:100%;
|
| width:100%;
|
||||||
| background-color: $stringBackgroundColor;
|
| background-color: $stringBackgroundColor;
|
||||||
|}</style>$c""".trimMargin(),
|
| }
|
||||||
"text/html; charset=utf-8",
|
| </style>
|
||||||
|
|</head>
|
||||||
|
|<body>
|
||||||
|
| $c
|
||||||
|
|</body>""".trimMargin(),
|
||||||
|
"text/html",
|
||||||
"utf-8",
|
"utf-8",
|
||||||
null
|
null
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user