diff options
author | H. Lehmann <ByteHamster@users.noreply.github.com> | 2019-11-14 00:11:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-14 00:11:51 +0100 |
commit | d3577985f9f235cd4008b6d2f7362171b99f99a4 (patch) | |
tree | a19860a1d3d6f729c18d960a36fe6cd1ee07433b /core | |
parent | 292f4c73cbc55e2f338c6a5122a33fc3da747258 (diff) | |
parent | 27b92532dabac09a6e44c8cb2e42bd22fb2e4e92 (diff) | |
download | AntennaPod-d3577985f9f235cd4008b6d2f7362171b99f99a4.zip |
Merge pull request #3610 from ByteHamster/link-width
Fixed long words leading to horizontal shownotes scrolling
Diffstat (limited to 'core')
-rw-r--r-- | core/src/main/java/de/danoeh/antennapod/core/util/playback/Timeline.java | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/core/src/main/java/de/danoeh/antennapod/core/util/playback/Timeline.java b/core/src/main/java/de/danoeh/antennapod/core/util/playback/Timeline.java index 0fe1f0036..9f9f6f5ae 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/util/playback/Timeline.java +++ b/core/src/main/java/de/danoeh/antennapod/core/util/playback/Timeline.java @@ -32,7 +32,35 @@ import de.danoeh.antennapod.core.util.ShownotesProvider; public class 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; |