constrain table width in checkup summaries

pull/1/head
ansuz 4 years ago
parent 613868bbde
commit dd53b6fa72

@ -46,14 +46,18 @@ html, body {
padding: 15px; padding: 15px;
} }
table { .table-container {
td { overflow-x: auto;
padding: 5px; width: 100%;
border: 1px solid @cryptpad_text_col; table {
font-size: 60%; td {
} padding: 5px;
td:nth-child(2) { border: 1px solid @cryptpad_text_col;
word-break: break-word; font-size: 60%;
}
td:nth-child(2) {
word-break: break-word;
}
} }
} }

@ -902,10 +902,12 @@ define([
return h('div.error', [ return h('div.error', [
h('h5', obj.message), h('h5', obj.message),
h('table', [ h('div.table-container',
row(["Failed test number", obj.test + 1]), h('table', [
row(["Returned value", h('pre', code(printableValue))]), row(["Failed test number", obj.test + 1]),
]), row(["Returned value", h('pre', code(printableValue))]),
]),
),
]); ]);
}; };

Loading…
Cancel
Save