Improve tooltip position in block overview on mobile
This commit is contained in:
2 files changed
+5
-1
No files matched your search
+1
-1
@@ -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';
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user