Notification should not hide content according to ux

Issue description:
Notification will hide some content when it popup.

According to ux requirement, we should make it not extend to the whole widh of UI, and should not hide the content.

Fix:
Use clarity alert-app-level style,it will show as ux design,and text in center too.
This commit is contained in:
Mia ZHOU 2018-07-24 17:56:46 +08:00
parent c6c5745183
commit 50678523c4
2 changed files with 4 additions and 17 deletions

View File

@ -1,4 +1,4 @@
<div [class.global-message-alert]="!isAppLevel">
<div [class.alert-app-level]="!isAppLevel">
<clr-alert [clrAlertType]="globalMessage.type" [clrAlertAppLevel]="isAppLevel" [(clrAlertClosed)]="!globalMessageOpened" (clrAlertClosedChange)="onClose()">
<div class="alert-item">
<span class="alert-text">{{message}}</span>

View File

@ -1,16 +1,3 @@
.global-message-alert {
position: relative;
top: 0;
left: 0;
width: 100%;
z-index: 999;
margin-bottom: 20px;
.alert-app-level {
margin-bottom:20px;
}
.alert-item {
display: inline-block;
text-align: center;
}
:host >>> .alert-icon-wrapper{
display: inline;
}
:host >>> .alert.alert-app-level.alert-warning{padding: 0;}