mirror of
https://github.com/mempool/mempool.git
synced 2025-02-24 14:50:52 +01:00
Merge pull request #4281 from mempool/nymkappa/fix-blockchain-width-liquid
[ui] don't add 120px to blockchain component on liquid
This commit is contained in:
commit
5e95d8d6ce
3 changed files with 11 additions and 1 deletions
|
@ -14,6 +14,7 @@
|
||||||
<div id="blockchain-container" [dir]="timeLtr ? 'rtl' : 'ltr'" #blockchainContainer
|
<div id="blockchain-container" [dir]="timeLtr ? 'rtl' : 'ltr'" #blockchainContainer
|
||||||
[class.menu-open]="menuOpen"
|
[class.menu-open]="menuOpen"
|
||||||
[class.menu-closing]="menuSliding && !menuOpen"
|
[class.menu-closing]="menuSliding && !menuOpen"
|
||||||
|
[class.with-menu]="hasMenu"
|
||||||
(mousedown)="onMouseDown($event)"
|
(mousedown)="onMouseDown($event)"
|
||||||
(pointerdown)="onPointerDown($event)"
|
(pointerdown)="onPointerDown($event)"
|
||||||
(touchmove)="onTouchMove($event)"
|
(touchmove)="onTouchMove($event)"
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
overflow-y: hidden;
|
overflow-y: hidden;
|
||||||
scrollbar-width: none;
|
scrollbar-width: none;
|
||||||
-ms-overflow-style: none;
|
-ms-overflow-style: none;
|
||||||
width: calc(100% + 120px);
|
width: 100%;
|
||||||
|
|
||||||
transform: translateX(0px);
|
transform: translateX(0px);
|
||||||
transition: transform 0;
|
transition: transform 0;
|
||||||
|
@ -20,6 +20,10 @@
|
||||||
transform: translateX(0px);
|
transform: translateX(0px);
|
||||||
transition: transform 0.25s;
|
transition: transform 0.25s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.with-menu {
|
||||||
|
width: calc(100% + 120px);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#blockchain-container::-webkit-scrollbar {
|
#blockchain-container::-webkit-scrollbar {
|
||||||
|
|
|
@ -60,11 +60,16 @@ export class StartComponent implements OnInit, AfterViewChecked, OnDestroy {
|
||||||
menuSliding: boolean = false;
|
menuSliding: boolean = false;
|
||||||
menuTimeout: number;
|
menuTimeout: number;
|
||||||
|
|
||||||
|
hasMenu = false;
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private stateService: StateService,
|
private stateService: StateService,
|
||||||
private cd: ChangeDetectorRef,
|
private cd: ChangeDetectorRef,
|
||||||
) {
|
) {
|
||||||
this.isiOS = ['iPhone','iPod','iPad'].includes((navigator as any)?.userAgentData?.platform || navigator.platform);
|
this.isiOS = ['iPhone','iPod','iPad'].includes((navigator as any)?.userAgentData?.platform || navigator.platform);
|
||||||
|
if (this.stateService.network === '') {
|
||||||
|
this.hasMenu = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue