From d70354021c443215d23e24b984ee987ff6177780 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Mon, 14 Dec 2020 01:54:29 +0800 Subject: [PATCH] Make table horizontal scroll (#206) --- assets/css/_addon/main.scss | 7 ------- assets/css/_addon/module.scss | 1 + 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/assets/css/_addon/main.scss b/assets/css/_addon/main.scss index 6fe2af0..9c7df22 100644 --- a/assets/css/_addon/main.scss +++ b/assets/css/_addon/main.scss @@ -1033,13 +1033,6 @@ div.post-content .table-wrapper { @include ml-mr(1.8rem); } - /* table text in small screens */ - div > table, p ~ table { - width: 100%; - table-layout: fixed; - word-wrap: break-word; - } - #main-wrapper { padding-bottom: $footer-height; } diff --git a/assets/css/_addon/module.scss b/assets/css/_addon/module.scss index 94505f4..e4d9231 100644 --- a/assets/css/_addon/module.scss +++ b/assets/css/_addon/module.scss @@ -17,6 +17,7 @@ %table-cell { padding: 0.4rem 1rem; font-size: 95%; + white-space: nowrap; } %link-hover {