From b010d2663d9bb812789e751ab2e59b155835db5a Mon Sep 17 00:00:00 2001 From: Rory Maher Date: Thu, 6 May 2021 13:23:38 +0100 Subject: [PATCH 1/3] Fix table width style Tables generated by the markdown renderer don't honour the max-width property without applying word-break styling to the td elements --- resources/sass/_pages.scss | 3 +++ 1 file changed, 3 insertions(+) diff --git a/resources/sass/_pages.scss b/resources/sass/_pages.scss index 4f249244b..69f57aaec 100755 --- a/resources/sass/_pages.scss +++ b/resources/sass/_pages.scss @@ -122,6 +122,9 @@ body.mce-fullscreen, body.markdown-fullscreen { max-width: 100%; height: auto !important; } + td { + word-break: break-word; + } // diffs ins, From 243c1db4081b0d63c40b3afd1f2d03df1d33195f Mon Sep 17 00:00:00 2001 From: Rory Maher Date: Mon, 10 May 2021 12:10:02 +0100 Subject: [PATCH 2/3] Revert "Fix table width style" This reverts commit b010d2663d9bb812789e751ab2e59b155835db5a. --- resources/sass/_pages.scss | 3 --- 1 file changed, 3 deletions(-) diff --git a/resources/sass/_pages.scss b/resources/sass/_pages.scss index 69f57aaec..4f249244b 100755 --- a/resources/sass/_pages.scss +++ b/resources/sass/_pages.scss @@ -122,9 +122,6 @@ body.mce-fullscreen, body.markdown-fullscreen { max-width: 100%; height: auto !important; } - td { - word-break: break-word; - } // diffs ins, From 386925ad8e8ac23dfca07084d7da0139dfcf78a6 Mon Sep 17 00:00:00 2001 From: Rory Maher Date: Mon, 10 May 2021 12:11:28 +0100 Subject: [PATCH 3/3] Apply column fix to all tables --- resources/sass/_tables.scss | 1 + 1 file changed, 1 insertion(+) diff --git a/resources/sass/_tables.scss b/resources/sass/_tables.scss index 315f979f3..c78e13446 100644 --- a/resources/sass/_tables.scss +++ b/resources/sass/_tables.scss @@ -11,6 +11,7 @@ table { border: 1px solid #DDD; overflow: auto; line-height: 1.2; + word-break: break-word; } td p, th p { margin: 0;