Merge pull request #3610 from ByteHamster/link-width

Fixed long words leading to horizontal shownotes scrolling
This commit is contained in:
H. Lehmann 2019-11-14 00:11:51 +01:00 committed by GitHub
commit d3577985f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 29 additions and 1 deletions

View File

@ -32,7 +32,35 @@ import de.danoeh.antennapod.core.util.ShownotesProvider;
public class Timeline { public class Timeline {
private static final String TAG = "Timeline"; private static final String TAG = "Timeline";
private static final String WEBVIEW_STYLE = "@font-face { font-family: 'Roboto-Light'; src: url('file:///android_asset/Roboto-Light.ttf'); } * { color: %s; font-family: roboto-Light; font-size: 13pt; } a { font-style: normal; text-decoration: none; font-weight: normal; color: #00A8DF; } a.timecode { color: #669900; } img { display: block; margin: 10 auto; max-width: %s; height: auto; } body { margin: %dpx %dpx %dpx %dpx; }"; private static final String WEBVIEW_STYLE =
"@font-face {"
+ "font-family: 'Roboto-Light';"
+ "src: url('file:///android_asset/Roboto-Light.ttf');"
+ "}"
+ "* {"
+ "color: %s;"
+ "font-family: roboto-Light;"
+ "font-size: 13pt;"
+ "overflow-wrap: break-word;"
+ "}"
+ "a {"
+ "font-style: normal;"
+ "text-decoration: none;"
+ "font-weight: normal;"
+ "color: #00A8DF;"
+ "}"
+ "a.timecode {"
+ "color: #669900;"
+ "}"
+ "img {"
+ "display: block;"
+ "margin: 10 auto;"
+ "max-width: %s;"
+ "height: auto;"
+ "}"
+ "body {"
+ "margin: %dpx %dpx %dpx %dpx;"
+ "}";
private ShownotesProvider shownotesProvider; private ShownotesProvider shownotesProvider;