Fixes #373: applies horizontal scrolling to tables when necessary

This commit is contained in:
Zef Hemel
2023-07-13 11:50:31 +02:00
parent 77af9e0257
commit 79a1120198
+3 -11
View File
@@ -386,6 +386,7 @@
display: block; display: block;
font-weight: normal; font-weight: normal;
margin-bottom: -3rem; margin-bottom: -3rem;
overflow: auto;
table { table {
width: 100%; width: 100%;
@@ -399,6 +400,7 @@
th, th,
td { td {
padding: 8px; padding: 8px;
white-space: nowrap;
} }
} }
@@ -479,18 +481,8 @@ div:not(.cm-focused).cm-fat-cursor {
outline: none !important; outline: none !important;
} }
@media only screen and (max-width: 600px) { @media only screen and (max-width: 600px) {
#sb-main .cm-editor {
.sb-table-widget {
overflow: auto;
th,
td {
white-space: nowrap;
}
}
}
#sb-editor { #sb-editor {
.sb-directive-start-outside, .sb-directive-start-outside,