From 17886abcda4f92605e814bb1987bdebfa36c0dcb Mon Sep 17 00:00:00 2001
From: Raymond Hill
Date: Sun, 15 Mar 2020 09:25:18 -0400
Subject: [PATCH] Centralize break-all CSS property
So that both asset viewer and "My filters" inherit
the property for filter list rendering.
---
src/1p-filters.html | 2 +-
src/asset-viewer.html | 7 +------
src/css/codemirror.css | 4 ++++
3 files changed, 6 insertions(+), 7 deletions(-)
diff --git a/src/1p-filters.html b/src/1p-filters.html
index 2f2f06f17..01aecf1d6 100644
--- a/src/1p-filters.html
+++ b/src/1p-filters.html
@@ -30,7 +30,7 @@
-
+
diff --git a/src/asset-viewer.html b/src/asset-viewer.html
index e1f36e264..0aaf7721b 100644
--- a/src/asset-viewer.html
+++ b/src/asset-viewer.html
@@ -21,16 +21,11 @@ body {
height: 100vh;
width: 100vw;
}
-
-/* https://github.com/uBlockOrigin/uBlock-issues/issues/292 */
-.CodeMirror-wrap pre {
- word-break: break-all;
- }
-
+
diff --git a/src/css/codemirror.css b/src/css/codemirror.css
index ff2de8f80..7ef0b6c6f 100644
--- a/src/css/codemirror.css
+++ b/src/css/codemirror.css
@@ -17,6 +17,10 @@
height: 100%;
}
+.codeMirrorContainer.codeMirrorBreakAll .CodeMirror-wrap pre {
+ word-break: break-all;
+ }
+
.cm-s-default .cm-comment { color: #777; }
.cm-directive { color: #333; font-weight: bold; }
.cm-staticext { color: #008; }