Skip to content

armgit / fider

Public Imported from GitHub
0

Open platform to collect and prioritize feedback

Scroll wide markdown tables instead of breaking words

Matt Roberts92577019d20f
diff --git a/public/components/common/Markdown.scss b/public/components/common/Markdown.scss
index 196c121eb..b8d7e9c86 100644
--- a/public/components/common/Markdown.scss
+++ b/public/components/common/Markdown.scss
@@ -67,6 +67,21 @@
display: block;
}
+ // Scroll wide tables instead of squashing them; the inherited word-break would
+ // otherwise let cells shrink to one letter per line on narrow screens
+ table {
+ display: block;
+ max-width: 100%;
+ overflow-x: auto;
+ border-collapse: collapse;
+ }
+
+ th,
+ td {
+ word-break: normal;
+ padding: spacing(1) spacing(2);
+ }
+
pre {
overflow-x: auto;
padding: spacing(2);