Skip to content

Commit 1e6a736

Browse files
Izerenclaude
authored andcommitted
[FLINK-22543][runtime-web] Fix Exception History table layout broken by long exception strings
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent b50d5f0 commit 1e6a736

2 files changed

Lines changed: 19 additions & 6 deletions

File tree

flink-runtime-web/web-dashboard/src/app/pages/job/exceptions/job-exceptions.component.html

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,22 +35,23 @@
3535
[nzData]="exceptionHistory"
3636
[nzShowPagination]="false"
3737
[nzFrontPagination]="false"
38+
nzTableLayout="fixed"
3839
>
3940
<thead>
4041
<tr>
41-
<th nzWidth="60px"></th>
42-
<th>Time</th>
42+
<th nzWidth="4%"></th>
43+
<th nzWidth="12%">Time</th>
4344
<th>Exception</th>
44-
<th>Task Name</th>
45-
<th>Location</th>
45+
<th nzWidth="18%">Task Name</th>
46+
<th nzWidth="12%">Location</th>
4647
</tr>
4748
</thead>
4849
<tbody>
4950
<ng-container *ngFor="let item of exceptionHistory; trackBy: trackByTimestamp">
5051
<tr>
5152
<td nzShowExpand [(nzExpand)]="item.expand"></td>
5253
<td>{{ item.selected.timestamp | date: 'yyyy-MM-dd HH:mm:ss' }}</td>
53-
<td>
54+
<td class="exception-cell">
5455
<div class="name">{{ item.selected.exceptionName }}</div>
5556
<nz-tag
5657
*ngFor="let label of item.selected.failureLabels | keyvalue"

flink-runtime-web/web-dashboard/src/app/pages/job/exceptions/job-exceptions.component.less

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,18 @@
4747

4848
nz-table {
4949
margin-top: -@margin-md;
50+
51+
.exception-cell {
52+
word-break: break-all;
53+
54+
nz-tag {
55+
max-width: 100%;
56+
white-space: normal;
57+
word-break: break-all;
58+
height: auto;
59+
line-height: 1.4;
60+
}
61+
}
5062
}
5163

5264
nz-tag {
@@ -59,6 +71,6 @@
5971
}
6072

6173
.exception-select {
62-
width: 300px;
74+
width: 100%;
6375
}
6476
}

0 commit comments

Comments
 (0)