Skip to content

Commit bcc698c

Browse files
authored
🪟 🐛 Truncate Displayed External Message for Failure/Partial Failure Jobs (#15633)
* truncate error message * add ellipses if truncated * trim to 136 to prevent extra wrap * use flexbox to truncate message
1 parent 8b382b5 commit bcc698c

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

airbyte-webapp/src/components/JobItem/components/AttemptDetails.module.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,9 @@
55
line-height: 15px;
66
color: colors.$grey;
77
}
8+
9+
.truncate {
10+
white-space: nowrap;
11+
overflow: hidden;
12+
text-overflow: ellipsis;
13+
}

airbyte-webapp/src/components/JobItem/components/AttemptDetails.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ const AttemptDetails: React.FC<IProps> = ({ attempt, className, configType }) =>
9999
) : null}
100100
</div>
101101
{isFailed && (
102-
<div>
102+
<div className={styles.truncate}>
103103
{formatMessage(
104104
{
105105
id: "ui.keyValuePairV3",

airbyte-webapp/src/components/JobItem/components/MainInfo.module.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@
88
.titleCell {
99
display: flex;
1010
color: colors.$dark-blue;
11+
min-width: 0;
1112

1213
.statusIcon {
1314
display: flex;
1415
align-items: center;
1516
justify-content: center;
1617
width: 75px;
18+
min-width: 75px;
1719

1820
& > div {
1921
margin: 0;
@@ -28,8 +30,10 @@
2830

2931
.justification {
3032
display: flex;
33+
flex-grow: 1;
3134
flex-direction: column;
3235
justify-content: center;
36+
min-width: 0;
3337
}
3438
}
3539

0 commit comments

Comments
 (0)