Address mouseover QR code
This commit is contained in:
parent
9514bb703b
commit
331b54fe89
@ -4,6 +4,12 @@
|
|||||||
<div class="tx-link">
|
<div class="tx-link">
|
||||||
<app-truncate [text]="addressString" [lastChars]="8" [link]="['/address/' | relativeUrl, addressString]">
|
<app-truncate [text]="addressString" [lastChars]="8" [link]="['/address/' | relativeUrl, addressString]">
|
||||||
<app-clipboard [text]="addressString"></app-clipboard>
|
<app-clipboard [text]="addressString"></app-clipboard>
|
||||||
|
<span style="position: relative; cursor: pointer" (mouseover)="showQR = true" (mouseout)="showQR = false" (click)="showQR = !showQR">
|
||||||
|
<fa-icon [icon]="['fas', 'qrcode']" [fixedWidth]="true"></fa-icon>
|
||||||
|
<div class="qr-wrapper" [hidden]="!showQR">
|
||||||
|
<app-qrcode [size]="200" [data]="addressString"></app-qrcode>
|
||||||
|
</div>
|
||||||
|
</span>
|
||||||
</app-truncate>
|
</app-truncate>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,16 +1,14 @@
|
|||||||
.qr-wrapper {
|
.qr-wrapper {
|
||||||
|
position: absolute;
|
||||||
|
top: 30px;
|
||||||
|
right: 0px;
|
||||||
|
border: solid 10px var(--active-bg);
|
||||||
|
border-radius: 5px;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
padding-bottom: 5px;
|
padding-bottom: 5px;
|
||||||
display: inline-block;
|
display: block;
|
||||||
}
|
z-index: 99;
|
||||||
|
|
||||||
.qrcode-col {
|
|
||||||
margin: 20px auto 10px;
|
|
||||||
text-align: center;
|
|
||||||
@media (min-width: 992px){
|
|
||||||
margin: 0px auto 0px;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.fiat {
|
.fiat {
|
||||||
@ -104,10 +102,6 @@ h1 {
|
|||||||
width: 80%;
|
width: 80%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.qrcode-col {
|
|
||||||
flex-grow: 0.5;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.widget-toggler {
|
.widget-toggler {
|
||||||
|
@ -97,6 +97,7 @@ export class AddressComponent implements OnInit, OnDestroy {
|
|||||||
network = '';
|
network = '';
|
||||||
|
|
||||||
isMobile: boolean;
|
isMobile: boolean;
|
||||||
|
showQR: boolean = false;
|
||||||
|
|
||||||
address: Address;
|
address: Address;
|
||||||
addressString: string;
|
addressString: string;
|
||||||
@ -141,6 +142,8 @@ export class AddressComponent implements OnInit, OnDestroy {
|
|||||||
this.stateService.networkChanged$.subscribe((network) => this.network = network);
|
this.stateService.networkChanged$.subscribe((network) => this.network = network);
|
||||||
this.websocketService.want(['blocks']);
|
this.websocketService.want(['blocks']);
|
||||||
|
|
||||||
|
this.onResize();
|
||||||
|
|
||||||
this.addressLoadingStatus$ = this.route.paramMap
|
this.addressLoadingStatus$ = this.route.paramMap
|
||||||
.pipe(
|
.pipe(
|
||||||
switchMap(() => this.stateService.loadingIndicators$),
|
switchMap(() => this.stateService.loadingIndicators$),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user