From 6311fb607da1c7cad2a0552ab5b0a0461c5e053c Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 13 Jan 2021 13:38:51 +0300 Subject: [PATCH] pre: set white-space: pre-wrap to remove horizontal scrolling --- themes/compact.css | 2 ++ themes/compact_night.css | 2 ++ themes/light.css | 2 ++ themes/light/tt-rss.less | 1 + themes/light/zoom.less | 1 + themes/night.css | 2 ++ themes/night_blue.css | 2 ++ 7 files changed, 12 insertions(+) diff --git a/themes/compact.css b/themes/compact.css index c2828c587..a9cd43304 100644 --- a/themes/compact.css +++ b/themes/compact.css @@ -343,6 +343,7 @@ body.ttrss_main .dijitContentPane pre { display: block; max-width: 98%; overflow: auto; + white-space: pre-wrap; } body.ttrss_main div.prefHelp { color: #555; @@ -1880,6 +1881,7 @@ body.ttrss_zoom div.post div.content pre { display: block; max-width: 98%; overflow: auto; + white-space: pre-wrap; } /* rules specific to compact.css */ body.ttrss_main.ttrss_index.flat #feedTree.dijitTree .dijitTreeLabel { diff --git a/themes/compact_night.css b/themes/compact_night.css index 6666787b0..69a2d5034 100644 --- a/themes/compact_night.css +++ b/themes/compact_night.css @@ -343,6 +343,7 @@ body.ttrss_main .dijitContentPane pre { display: block; max-width: 98%; overflow: auto; + white-space: pre-wrap; } body.ttrss_main div.prefHelp { color: #ccc; @@ -1871,6 +1872,7 @@ body.ttrss_zoom div.post div.content pre { display: block; max-width: 98%; overflow: auto; + white-space: pre-wrap; } body.flat.ttrss_main.ttrss_prefs #main, body.flat.ttrss_main.ttrss_prefs #footer { diff --git a/themes/light.css b/themes/light.css index d2f5aa4ee..bd8e9219e 100644 --- a/themes/light.css +++ b/themes/light.css @@ -343,6 +343,7 @@ body.ttrss_main .dijitContentPane pre { display: block; max-width: 98%; overflow: auto; + white-space: pre-wrap; } body.ttrss_main div.prefHelp { color: #555; @@ -1880,4 +1881,5 @@ body.ttrss_zoom div.post div.content pre { display: block; max-width: 98%; overflow: auto; + white-space: pre-wrap; } diff --git a/themes/light/tt-rss.less b/themes/light/tt-rss.less index 5a0f8542d..835585fe6 100644 --- a/themes/light/tt-rss.less +++ b/themes/light/tt-rss.less @@ -394,6 +394,7 @@ body.ttrss_main { display: block; max-width: 98%; overflow: auto; + white-space: pre-wrap; } div.prefHelp { diff --git a/themes/light/zoom.less b/themes/light/zoom.less index e06939ac2..e599bc447 100644 --- a/themes/light/zoom.less +++ b/themes/light/zoom.less @@ -64,6 +64,7 @@ body.ttrss_zoom { display : block; max-width : 98%; overflow : auto; + white-space: pre-wrap; } } } diff --git a/themes/night.css b/themes/night.css index face01932..e47120d8f 100644 --- a/themes/night.css +++ b/themes/night.css @@ -344,6 +344,7 @@ body.ttrss_main .dijitContentPane pre { display: block; max-width: 98%; overflow: auto; + white-space: pre-wrap; } body.ttrss_main div.prefHelp { color: #ccc; @@ -1872,6 +1873,7 @@ body.ttrss_zoom div.post div.content pre { display: block; max-width: 98%; overflow: auto; + white-space: pre-wrap; } body.flat.ttrss_main.ttrss_prefs #main, body.flat.ttrss_main.ttrss_prefs #footer { diff --git a/themes/night_blue.css b/themes/night_blue.css index d5cda927f..de8acffdf 100644 --- a/themes/night_blue.css +++ b/themes/night_blue.css @@ -344,6 +344,7 @@ body.ttrss_main .dijitContentPane pre { display: block; max-width: 98%; overflow: auto; + white-space: pre-wrap; } body.ttrss_main div.prefHelp { color: #ccc; @@ -1872,6 +1873,7 @@ body.ttrss_zoom div.post div.content pre { display: block; max-width: 98%; overflow: auto; + white-space: pre-wrap; } body.flat.ttrss_main.ttrss_prefs #main, body.flat.ttrss_main.ttrss_prefs #footer {