]> BookStack Code Mirror - bookstack/commitdiff
Fix table width style
authorRory Maher <redacted>
Thu, 6 May 2021 12:23:38 +0000 (13:23 +0100)
committerRory Maher <redacted>
Thu, 6 May 2021 12:23:38 +0000 (13:23 +0100)
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

index 4f249244b03f88a388c3b6c97855b01d27ac1d0a..69f57aaeccbf34087d1d33af390dc1a74a77a9cb 100755 (executable)
@@ -122,6 +122,9 @@ body.mce-fullscreen, body.markdown-fullscreen {
     max-width: 100%;
     height: auto !important;
   }
+  td {
+    word-break: break-word;
+  }
 
   // diffs
   ins,