mempool/frontend/src/app/components/clipboard/clipboard.component.html

18 lines
922 B
HTML
Raw Normal View History

2022-09-19 18:21:31 +02:00
<ng-template [ngIf]="button" [ngIfElse]="btnLink">
<button [class]="class" type="button" [disabled]="text === ''" style="box-shadow: none;" (click)="copyText()">
<span style="position: relative;top: -2px;left: 1px;">
<app-svg-images name="clippy" [width]="widths[size]" viewBox="0 0 1000 1000"></app-svg-images>
<span *ngIf="showMessage" class="copied-message" style="top: 29px; left: -23.5px;">{{ copiedMessage }}</span>
2022-09-19 18:21:31 +02:00
</span>
</button>
2022-09-19 18:21:31 +02:00
</ng-template>
<ng-template #btnLink>
<span style="position: relative;">
<button class="btn btn-sm btn-link pt-0 {{ leftPadding ? 'padding' : '' }}" style="box-shadow: none;" (click)="copyText()">
<app-svg-images name="clippy" [width]="widths[size]" viewBox="0 0 1000 1000"></app-svg-images>
2022-09-19 18:21:31 +02:00
</button>
<span *ngIf="showMessage" class="copied-message" style="top: 29px; left: -23.5px;">{{ copiedMessage }}</span>
2022-09-19 18:21:31 +02:00
</span>
</ng-template>