Skip to content

Commit

Permalink
fix: mod template to fix button move
Browse files Browse the repository at this point in the history
  • Loading branch information
yangxiaolang committed Jul 4, 2024
1 parent 57c5753 commit ceaa149
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/editable/editable.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,12 @@
<ng-container [ngTemplateOutlet]="editor"> </ng-container>

<button
*ngIf="!loading"
aui-button="text"
[square]="true"
[disabled]="loading"
(click)="saveEdit()"
>
<aui-icon icon="check"></aui-icon>
</button>
<button
*ngIf="loading"
aui-button="text"
[square]="true"
(click)="saveEdit()"
>
<aui-icon icon="spinner"></aui-icon>
<aui-icon [icon]="loading ? 'spinner' : 'check'"></aui-icon>
</button>
<button
aui-button="text"
Expand Down
4 changes: 4 additions & 0 deletions src/editable/editable.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
&:hover {
color: use-rgb(primary);
}

&[disabled] {
color: use-rgb(main-text) !important;
}
}

&--center &__view-container,
Expand Down

0 comments on commit ceaa149

Please sign in to comment.