Fix invalid margin when loader is not displayed
This commit is contained in:
parent
927fa4b11f
commit
3267d381f4
|
@ -7,7 +7,7 @@
|
|||
</a>
|
||||
|
||||
<ng-template #content>
|
||||
<my-loader size="sm" [loading]="loading"></my-loader>
|
||||
<my-loader size="sm" [ngClass]="{ displayed: loading }" [loading]="loading"></my-loader>
|
||||
<my-global-icon *ngIf="icon && !loading" [iconName]="icon"></my-global-icon>
|
||||
|
||||
<span *ngIf="label" class="button-label">{{ label }}</span>
|
||||
|
|
|
@ -29,7 +29,7 @@ span[class$=-button] {
|
|||
.action-button {
|
||||
width: 100%; // useful for ellipsis, allow to define a max-width on host component
|
||||
|
||||
my-loader {
|
||||
my-loader.displayed {
|
||||
@include margin-right(3px);
|
||||
|
||||
display: inline-flex;
|
||||
|
|
Loading…
Reference in New Issue