Fix invalid margin when loader is not displayed

pull/5163/head
Chocobozzz 2022-07-27 10:39:59 +02:00
parent 927fa4b11f
commit 3267d381f4
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
2 changed files with 2 additions and 2 deletions

View File

@ -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>

View File

@ -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;