Skip to content

Commit 701fbfd

Browse files
committed
Make the banner responsive - allow text to wrap around on smaller screens
1 parent 1f4fd75 commit 701fbfd

2 files changed

Lines changed: 16 additions & 2 deletions

File tree

src/app/shared/modules/status-message/status-banner/status-banner.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
<mat-toolbar [color]="bannerColor" style="height: 32px">
2-
<span [innerHTML]="appConfig.statusMessage"></span>
1+
<mat-toolbar [color]="bannerColor" class="toolbar">
2+
<span [innerHTML]="appConfig.statusMessage" class="status-message"></span>
33
<span class="spacer"></span>
44
<button mat-icon-button aria-label="Dismiss" (click)="onDismiss()">
55
<mat-icon>close</mat-icon>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
11
.spacer {
22
flex: 1 1 auto;
33
}
4+
5+
.toolbar {
6+
height: 32px;
7+
}
8+
9+
@media (max-width: 800px) {
10+
.toolbar {
11+
height: 64px;
12+
}
13+
.status-message {
14+
text-wrap: wrap;
15+
font-size: 16px;
16+
}
17+
}

0 commit comments

Comments
 (0)