From 79a1120198976d84be0ea7290dc8f21720f57fd7 Mon Sep 17 00:00:00 2001 From: Zef Hemel Date: Thu, 13 Jul 2023 11:50:31 +0200 Subject: [PATCH] Fixes #373: applies horizontal scrolling to tables when necessary --- web/styles/editor.scss | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/web/styles/editor.scss b/web/styles/editor.scss index 6565fed..05e4c07 100644 --- a/web/styles/editor.scss +++ b/web/styles/editor.scss @@ -386,6 +386,7 @@ display: block; font-weight: normal; margin-bottom: -3rem; + overflow: auto; table { width: 100%; @@ -399,6 +400,7 @@ th, td { padding: 8px; + white-space: nowrap; } } @@ -479,18 +481,8 @@ div:not(.cm-focused).cm-fat-cursor { outline: none !important; } + @media only screen and (max-width: 600px) { - #sb-main .cm-editor { - .sb-table-widget { - overflow: auto; - - th, - td { - white-space: nowrap; - } - } - } - #sb-editor { .sb-directive-start-outside,