summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Federico Brigante <me@fregante.com> 2022-07-09 12:51:22 +0700
committerGravatar GitHub <noreply@github.com> 2022-07-09 12:51:22 +0700
commitc3d070919dbe35563b95e3b0918b2ac05eff501f (patch)
treec9716256d91a014a99a1c91a6ac918668d437037
parent8bf8cd2f2fe462ca4e632e00e3782b72187408db (diff)
downloadrefined-github-c3d070919dbe35563b95e3b0918b2ac05eff501f.tar.gz
refined-github-c3d070919dbe35563b95e3b0918b2ac05eff501f.tar.zst
refined-github-c3d070919dbe35563b95e3b0918b2ac05eff501f.zip
Fix `preview-hidden-comments` overflow on mobile (#5792)
-rw-r--r--source/features/preview-hidden-comments.css4
-rw-r--r--source/features/preview-hidden-comments.tsx1
2 files changed, 5 insertions, 0 deletions
diff --git a/source/features/preview-hidden-comments.css b/source/features/preview-hidden-comments.css
new file mode 100644
index 00000000..c3b56a98
--- /dev/null
+++ b/source/features/preview-hidden-comments.css
@@ -0,0 +1,4 @@
+/* Avoid overflow on mobile due to change of flex-direction #5750 */
+.rgh-preview-hidden-comments h3 {
+ max-width: 100%;
+}
diff --git a/source/features/preview-hidden-comments.tsx b/source/features/preview-hidden-comments.tsx
index 57c8a262..939ded74 100644
--- a/source/features/preview-hidden-comments.tsx
+++ b/source/features/preview-hidden-comments.tsx
@@ -1,3 +1,4 @@
+import './preview-hidden-comments.css';
import React from 'dom-chef';
import select from 'select-dom';
import * as pageDetect from 'github-url-detection';