Update style for banner message ui (#19069)

1.Fixes #19021
2.Fixes #19022

Signed-off-by: AllForNothing <sshijun@vmware.com>
This commit is contained in:
Shijun Sun 2023-08-01 17:24:28 +08:00 committed by GitHub
parent 28e6a99eb9
commit b496edf304
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 2 deletions

View File

@ -1,11 +1,13 @@
<clr-alerts> <clr-alerts>
<clr-alert <clr-alert
*ngIf="hasValidBannerMessage() && isLogin()" *ngIf="hasValidBannerMessage()"
[clrAlertType]="getBannerMessageType()" [clrAlertType]="getBannerMessageType()"
[clrAlertAppLevel]="true" [clrAlertAppLevel]="true"
[clrAlertClosable]="getBannerMessageClosable()"> [clrAlertClosable]="getBannerMessageClosable()">
<clr-alert-item> <clr-alert-item>
<span class="alert-text">{{ getBannerMessage() }}</span> <span class="alert-text banner-message">{{
getBannerMessage()
}}</span>
</clr-alert-item> </clr-alert-item>
</clr-alert> </clr-alert>
<clr-alert <clr-alert

View File

@ -14,3 +14,8 @@
.no-underline { .no-underline {
text-decoration: none; text-decoration: none;
} }
.banner-message {
min-width: 0;
word-break: break-word;
}

View File

@ -359,6 +359,7 @@
}}" }}"
autocomplete="off" autocomplete="off"
class="clr-textarea" class="clr-textarea"
maxlength="800"
[(ngModel)]="messageText" [(ngModel)]="messageText"
[ngModelOptions]="{ standalone: true }" [ngModelOptions]="{ standalone: true }"
[disabled]=" [disabled]="

View File

@ -94,3 +94,7 @@ $row-height: 48px;
.no-border { .no-border {
border: none; border: none;
} }
.clr-col {
min-width: 0;
}