Skip to content

Commit 8c9f6ff

Browse files
fix: profile error messages truncated
Before the fix, when creating a new profile, if validation or other errors occurred, the informational messages at the top were truncated. Fixes #2486 Signed-off-by: Moya Sanchez, Daniel <[email protected]> Signed-off-by: Byron Marohn <[email protected]> Signed-off-by: Baltodano Zamora, Jefry <[email protected]> Signed-off-by: Vela, Mano <[email protected]>
1 parent 68ac42e commit 8c9f6ff

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

src/app/profiles/profile-detail/profile-detail.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
@if (errorMessages.length > 0) {
1212
<mat-list>
1313
@for (item of errorMessages; track item) {
14-
<mat-list-item>
14+
<mat-list-item class="error-messages-container">
1515
<mat-icon color='warn' matListItemIcon>error</mat-icon>
16-
<span matListItemTitle>{{ item }}</span>
16+
<span class="error-messages" matListItemTitle>{{ item }}</span>
1717
</mat-list-item>
1818
}
1919
</mat-list>

src/app/profiles/profile-detail/profile-detail.component.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,12 @@ fieldset {
5959
font-size: 75%;
6060
color: rgba(0, 0, 0, 0.54);
6161
}
62+
63+
.error-messages-container.mdc-list-item {
64+
height: auto;
65+
padding: 10px 0;
66+
}
67+
68+
.error-messages{
69+
white-space: break-spaces;
70+
}

0 commit comments

Comments
 (0)