Improve tooltip position in block overview on mobile
This commit is contained in:
parent
d9dec44c8f
commit
c2d649d3f4
@ -3,7 +3,7 @@
|
||||
class="block-overview-tooltip"
|
||||
[class.clickable]="clickable"
|
||||
[style.visibility]="tx ? 'visible' : 'hidden'"
|
||||
[style.left]="tooltipPosition.x + 'px'"
|
||||
[style.left]="getTooltipLeftPosition()"
|
||||
[style.top]="tooltipPosition.y + 'px'"
|
||||
>
|
||||
<table class="table-fixed">
|
||||
|
@ -96,4 +96,8 @@ export class BlockOverviewTooltipComponent implements OnChanges {
|
||||
this.cd.markForCheck();
|
||||
}
|
||||
}
|
||||
|
||||
getTooltipLeftPosition(): string {
|
||||
return window.innerWidth < 392 ? '-40px' : this.tooltipPosition.x + 'px';
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user