Skip to content

Commit

Permalink
🪟 🐛 Truncate Displayed External Message for Failure/Partial Failure J…
Browse files Browse the repository at this point in the history
…obs (#15633)

* truncate error message

* add ellipses if truncated

* trim to 136 to prevent extra wrap

* use flexbox to truncate message
  • Loading branch information
teallarson authored Aug 16, 2022
1 parent 8b382b5 commit bcc698c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,9 @@
line-height: 15px;
color: colors.$grey;
}

.truncate {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ const AttemptDetails: React.FC<IProps> = ({ attempt, className, configType }) =>
) : null}
</div>
{isFailed && (
<div>
<div className={styles.truncate}>
{formatMessage(
{
id: "ui.keyValuePairV3",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@
.titleCell {
display: flex;
color: colors.$dark-blue;
min-width: 0;

.statusIcon {
display: flex;
align-items: center;
justify-content: center;
width: 75px;
min-width: 75px;

& > div {
margin: 0;
Expand All @@ -28,8 +30,10 @@

.justification {
display: flex;
flex-grow: 1;
flex-direction: column;
justify-content: center;
min-width: 0;
}
}

Expand Down

0 comments on commit bcc698c

Please sign in to comment.