Set styles to be fixed and not cut text.
function registerEditorShortcuts(editor) {
// Headers
for (let i = 1; i < 5; i++) {
- editor.addShortcut('ctrl+' + i, '', ['FormatBlock', false, 'h' + i]);
+ editor.addShortcut('meta+' + i, '', ['FormatBlock', false, 'h' + i]);
}
// Other block shortcuts
* {
box-sizing: border-box;
}
+
html {
background-color: #FFFFFF;
height: 100%;
overflow-y: hidden;
}
}
+
body {
font-family: $text;
font-size: $fs-m;
button {
font-size: 100%;
-}
-
-table {
- min-width: 100px;
- td, th {
- min-width: 10px;
- padding: 4px 6px;
- border: 1px solid #DDD;
- }
- td p, th p {
- margin: 0;
- }
}
\ No newline at end of file
margin: $-m 0;
}
table {
- word-break: break-all;
- word-break: break-word;
hyphens: auto;
+ table-layout: fixed;
+ max-width: 100%;
+ height: auto !important;
}
}
+table {
+ min-width: 100px;
+ max-width: 100%;
+ thead {
+ background-color: #F8F8F8;
+ font-weight: 500;
+ }
+ td, th {
+ min-width: 10px;
+ padding: 6px 8px;
+ border: 1px solid #DDD;
+ overflow: auto;
+ line-height: 1.2;
+ }
+ td p, th p {
+ margin: 0;
+ }
+}
table.table {
width: 100%;
border: none;
padding: $-xs $-xs;
vertical-align: middle;
+ margin: 0;
}
th {
font-weight: bold;
}
}
-table {
- max-width: 100%;
- thead {
- background-color: #F8F8F8;
- font-weight: 500;
- }
-}
-
table.no-style {
td {
border: 0;