Support imageMaxHeight in new interop threads

Bug: twpowertools:96
Change-Id: Ic8f695d06e06defafda420b91d4fa1007b00f287
diff --git a/src/contentScripts/publicThread.js b/src/contentScripts/publicThread.js
index f16974e..fb251b9 100644
--- a/src/contentScripts/publicThread.js
+++ b/src/contentScripts/publicThread.js
@@ -1,3 +1,4 @@
+import {injectStylesheet} from '../common/contentScriptsUtils.js';
 import {getOptions} from '../common/optionsUtils.js';
 
 var CCThreadWithoutMessage = /forum\/[0-9]*\/thread\/[0-9]*$/;
@@ -56,5 +57,8 @@
             intersectionObserver.observe(button);
           }
         }
+
+    if (options.imagemaxheight)
+      injectStylesheet(chrome.runtime.getURL('css/image_max_height.css'));
   }
 });
diff --git a/src/static/css/image_max_height.css b/src/static/css/image_max_height.css
index 2e9b48b..2463945 100644
--- a/src/static/css/image_max_height.css
+++ b/src/static/css/image_max_height.css
@@ -1,5 +1,6 @@
 ec-question .body img,
-    ec-message .body img {
+    ec-message .body img,
+    .scTailwindThreadPostcontentroot img {
   /* "Max height = full height - 2 * height of the header" */
   max-height: calc(100vh - 2*64px);
 }