From 205bd1657f0b0f05bdae4f8be8f1ecb3ee649430 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=B4=8D=C9=AA=E1=B4=8D=C9=AA?= <1119186082@qq.com> Date: Thu, 4 Apr 2019 08:43:00 +0800 Subject: [PATCH] CSS bug in Codeblock if string longer than viewport (#803) * fix #761 * Fixed right marign during refresh * Backed highlight --- source/css/_common/scaffolding/tables.styl | 4 ++++ source/js/utils.js | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/source/css/_common/scaffolding/tables.styl b/source/css/_common/scaffolding/tables.styl index a563abcef2..91ae458213 100644 --- a/source/css/_common/scaffolding/tables.styl +++ b/source/css/_common/scaffolding/tables.styl @@ -4,6 +4,10 @@ -webkit-overflow-scrolling: touch; } +.highlight .table-container { + margin: 0px; +} + table { width: $table-width; border-collapse: collapse; diff --git a/source/js/utils.js b/source/js/utils.js index c7f3de45d8..df3aeb5407 100644 --- a/source/js/utils.js +++ b/source/js/utils.js @@ -298,7 +298,7 @@ NexT.utils = NexT.$u = { $(document).ready(function() { function wrapTable() { - $('table').not('figure table').wrap('
'); + $('table').wrap('
'); } /**