mirror of
https://github.com/mempool/mempool.git
synced 2025-03-01 09:10:02 +01:00
15 lines
811 B
HTML
15 lines
811 B
HTML
<ng-template [ngIf]="button" [ngIfElse]="btnLink">
|
|
<button #btn [attr.data-clipboard-text]="text" [class]="class" type="button" [disabled]="text === ''">
|
|
<span #buttonWrapper [attr.data-tlite]="copiedMessage" style="position: relative;top: -2px;left: 1px;">
|
|
<app-svg-images name="clippy" [width]="size === 'small' ? '10' : '13'" viewBox="0 0 1000 1000"></app-svg-images>
|
|
</span>
|
|
</button>
|
|
</ng-template>
|
|
|
|
<ng-template #btnLink>
|
|
<span #buttonWrapper [attr.data-tlite]="copiedMessage" style="position: relative;">
|
|
<button #btn class="btn btn-sm btn-link pt-0 {{ leftPadding ? 'padding' : '' }}" [attr.data-clipboard-text]="text">
|
|
<app-svg-images name="clippy" [width]="size === 'small' ? '10' : '13'" viewBox="0 0 1000 1000"></app-svg-images>
|
|
</button>
|
|
</span>
|
|
</ng-template>
|