ソースを参照

fix(css): scroll wide tables

Caused by a previous commit which added word-break to `article-style`.

Fix #2044
George Cushen 4 年 前
コミット
ce5b08f719
1 ファイル変更5 行追加2 行削除
  1. 5 2
      wowchemy/assets/scss/wowchemy/_root.scss

+ 5 - 2
wowchemy/assets/scss/wowchemy/_root.scss

@@ -537,10 +537,13 @@ a.badge:hover {
 table {
   display: block;
   width: 100%;
-  overflow-x: auto;
-  -webkit-overflow-scrolling: touch;
+  overflow-x: scroll;
   margin-bottom: 1rem;
   font-size: 0.8rem;
+  // Override `article-style`'s `break-word` wrapping to make wide tables scrollable.
+  overflow-wrap: normal;
+  word-wrap: normal;
+  word-break: normal;
 }
 
 table > thead > tr > th,