Skip to content

Commit 60977ee

Browse files
authored
Merge pull request #2307 from Kobzol/error-ui
Improve error UI in status page
2 parents 9fb68fb + f70b795 commit 60977ee

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

site/frontend/src/pages/status/page.vue

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ loadStatusData(loading);
216216
</tr>
217217

218218
<tr v-if="hasExpandedErrors(req.tag)">
219-
<td :colspan="tableWidth" style="padding: 10px 0">
219+
<td :colspan="tableWidth" class="error-row">
220220
<div v-for="[context, error] in Object.entries(req.errors)">
221221
<div>
222222
<details>
@@ -273,6 +273,7 @@ loadStatusData(loading);
273273
table {
274274
border-collapse: collapse;
275275
font-size: 1.1em;
276+
max-width: 1200px;
276277
277278
@media screen and (max-width: 850px) {
278279
align-self: start;
@@ -329,12 +330,27 @@ loadStatusData(loading);
329330
.aligned {
330331
text-align: right;
331332
}
333+
.error-row {
334+
padding: 20px 0;
335+
text-align: left;
336+
337+
summary {
338+
padding: 5px;
339+
340+
&:hover {
341+
cursor: pointer;
342+
background-color: #f7f7f7;
343+
}
344+
}
345+
}
332346
.error {
333347
padding: 10px;
334348
background-color: #f7f7f7;
335349
max-width: 100%;
336350
white-space: pre-wrap;
337351
word-break: break-word;
352+
text-align: left;
353+
margin-top: 0;
338354
}
339355
340356
.collectors-grid {

0 commit comments

Comments
 (0)