fixed the menu to the top of the app

This commit is contained in:
Shane Harris
2022-07-05 13:49:43 +02:00
parent e3584c13a9
commit de72146f34
2 changed files with 230 additions and 243 deletions
@@ -1,43 +1,7 @@
<div class="header"> <div class="header">
<div class="top-dnd-backing"> <div class="top-bar">
<div class="relative">
<div class="topper"></div> <div class="topper"></div>
<div class="top-banner">
<div>
<!--<div class="header-title">SideQuest</div>-->
<!--<div class="apk-install">Make it your own</div>-->
<a href="#/" class="logo">
<!--<img src="assets/images/logo-large icony.png"/>-->
<img src="assets/images/new-logo.png" />
<!--<img class="spider-image" src="https://i.giphy.com/media/V3sjIPOXgP5Zu/giphy.webp"/>-->
</a>
</div>
<div class="top-buttons hide-on-med-and-down">
</div>
<div class="well well-lg drop-message center-align" *ngIf="dragAndDropService.isDragging">
<h5>Drop file(s) here!</h5>
<br />
<span class="spinner-loading-message" [innerHTML]="dragAndDropService.message"></span>
</div>
<!--<div class="logo no-outline" (click)="webService.webView.loadURL('http://localhost:4201');" routerLink="webview"></div>-->
<!--<div class="header-title" #header><img src="assets/images/logo-textual.png" class="responsive-img"/></div>-->
<!--<div class="apk-install">Drag and drop your APK/OBB files <br>over this message to install!</div>-->
<!--<div class="apk-install" *ngIf="appService.isFilesOpen">Manage the files on your headset.<br>Drag and drop to move-->
<!--files onto your headset.</div>-->
<div class="apk-install" *ngIf="appService.isPackagesOpen">Manage the apps on your headset.<br>Click Show All to
see all apps including system apps.</div>
<div class="apk-install" *ngIf="appService.isSettingsOpen">Manage settings on your headset.</div>
<div class="apk-install" *ngIf="appService.isTasksOpen">Manage tasks for installing, <br>downloading and uploading
from your headset.</div>
<!--<div class="apk-install" *ngIf="appService.showCustomActions">Special thanks to-->
<!--<app-link url="https://github.com/trishume/QuestSaberPatch" text="@trishume"></app-link>,-->
<!--<app-link url="https://github.com/ATechAdventurer" text="@ATechAdventurer"></app-link>,<br>-->
<!--<app-link url="https://www.reddit.com/u/drewbaumann/" text="@drewbaumann"></app-link>,-->
<!--<app-link url="https://www.reddit.com/u/motokochan/" text="@motokochan"></app-link>-->
<!--and of course-->
<!--<app-link url="https://bsaber.com/members/elliotttate/" text="@elliotttate"></app-link>-->
<!--for beat saber efforts.-->
<!--</div>-->
</div>
<div class="user-menu-back" (click)="userMenu.style.display = 'none';userMenuBack.style.display = 'none'" <div class="user-menu-back" (click)="userMenu.style.display = 'none';userMenuBack.style.display = 'none'"
#userMenuBack></div> #userMenuBack></div>
<div class="user-menu-back" (click)="browserMenu.style.display = 'none';browserMenuBack.style.display = 'none'" <div class="user-menu-back" (click)="browserMenu.style.display = 'none';browserMenuBack.style.display = 'none'"
@@ -55,12 +19,6 @@
</ng-container> </ng-container>
</div> </div>
<div class="title-menu-container"> <div class="title-menu-container">
<!--<img mz-tooltip-->
<!--(click)="openBeatOn()"-->
<!--class="material-icons no-outline beaton-icon"-->
<!--src="{{beatonService.beatOnEnabled?'assets/images/beaton.png':'assets/images/beatoff.png'}}"-->
<!--position="bottom" tooltip="BeatOn mods & custom songs on Beat Saber"/>-->
<div class="user-menu command-menu" #commandMenu> <div class="user-menu command-menu" #commandMenu>
<div class="btn-flat waves-light waves-light full-width center-align white-text truncate" <div class="btn-flat waves-light waves-light full-width center-align white-text truncate"
(click)="commandMenu.style.display = 'none';commandMenuBack.style.display = 'none';adbModal.openModal()" (click)="commandMenu.style.display = 'none';commandMenuBack.style.display = 'none';adbModal.openModal()"
@@ -209,17 +167,40 @@
<!-- </i>--> <!-- </i>-->
</div> </div>
<div id="connection-status-container"> <div id="connection-status-container">
<i mz-tooltip class="material-icons white-text no-outline connection-device-select pointer" <i mz-tooltip class="material-icons white-text no-outline connection-device-select pointer left"
*ngIf="adbService.devices && adbService.devices.length > 1" *ngIf="adbService.devices && adbService.devices.length > 1"
(click)="deviceMenu.style.display = 'block';deviceMenuBack.style.display = 'block'" (click)="deviceMenu.style.display = 'block';deviceMenuBack.style.display = 'block'"
position="bottom" tooltip="Select Device"> position="bottom" tooltip="Select Device">
arrow_drop_down arrow_drop_down
</i> </i>
<div id="connection-status" class="connection-status-unauthorized" mz-tooltip <div id="connection-status" class="connection-status-unauthorized left" mz-tooltip
position="bottom" [ngClass]="adbService.connectionCss" [tooltip]="adbService.lastErrorMessage||'Device connection status.'"> position="bottom" [ngClass]="adbService.connectionCss" [tooltip]="adbService.lastErrorMessage||'Device connection status.'">
<div id="connection-status-message" [innerHTML]="appService.versionName+'&nbsp;&nbsp;'+adbService.deviceStatusMessage"></div> <div id="connection-status-message" [innerHTML]="appService.versionName+'&nbsp;&nbsp;'+adbService.deviceStatusMessage"></div>
</div> </div>
</div> </div>
</div>
</div>
<div class="top-dnd-backing">
<div class="top-banner">
<div>
<a href="#/" class="logo">
<img src="assets/images/new-logo.png" />
</a>
</div>
<div class="top-buttons hide-on-med-and-down">
</div>
<div class="well well-lg drop-message center-align" *ngIf="dragAndDropService.isDragging">
<h5>Drop file(s) here!</h5>
<br />
<span class="spinner-loading-message" [innerHTML]="dragAndDropService.message"></span>
</div>
<div class="apk-install" *ngIf="appService.isPackagesOpen">Manage the apps on your headset.<br>Click Show All to
see all apps including system apps.</div>
<div class="apk-install" *ngIf="appService.isSettingsOpen">Manage settings on your headset.</div>
<div class="apk-install" *ngIf="appService.isTasksOpen">Manage tasks for installing, <br>downloading and uploading
from your headset.</div>
</div>
<div *ngIf="appService.showBrowserBar" class="beast-saber-buttons"> <div *ngIf="appService.showBrowserBar" class="beast-saber-buttons">
<a class="waves-effect waves-light synthrideerz" <a class="waves-effect waves-light synthrideerz"
(click)="webService.loadUrl('https://synthriderz.com/beatmaps/recent')"> (click)="webService.loadUrl('https://synthriderz.com/beatmaps/recent')">
@@ -586,7 +567,7 @@
</mz-modal-content> </mz-modal-content>
<mz-modal-footer> <mz-modal-footer>
<div class="left margin-left"><br>Put your headset on before clicking Start Stream</div> <div class="left margin-left"><br>Put your headset on before clicking Start Stream</div>
<button mz-button class="pink-button" mz-modal-close (click)="runscrcpy()">Start Stream</button> <button mz-button class="pink-button margin-right" mz-modal-close (click)="runscrcpy()">Start Stream</button>
<button mz-button class="pink-button margin-right" mz-modal-close (click)="appService.opn('https://www.oculus.com/casting')">Oculus Casting</button> <button mz-button class="pink-button margin-right" mz-modal-close (click)="appService.opn('https://www.oculus.com/casting')">Oculus Casting</button>
<button mz-button [flat]="true" mz-modal-close>Close</button> <button mz-button [flat]="true" mz-modal-close>Close</button>
</mz-modal-footer> </mz-modal-footer>
@@ -89,6 +89,7 @@ virtual-scroller{
width: 100%; width: 100%;
border-bottom: 1px solid #8f8f8f; border-bottom: 1px solid #8f8f8f;
transition: 0.35s; transition: 0.35s;
margin-top: 35px;
} }
.spider-image{ .spider-image{
margin-top: 50px; margin-top: 50px;
@@ -416,6 +417,11 @@ virtual-scroller{
font-size: 1.8rem; font-size: 1.8rem;
} }
} }
.top-bar{
position: fixed;
z-index: 99999;
width: 100%;
}
.warning { .warning {
height: 35px; height: 35px;