move windowControl style to base.scss (#6027)

This commit is contained in:
Reverier 2022-09-30 21:21:55 +08:00 committed by GitHub
parent 6005027991
commit 11ba84f9dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View file

@ -169,6 +169,13 @@ progressLoading: 400
padding-left: 0;
}
#windowControls {
top: -1px;
z-index: 502;
right: -1px;
position: relative;
}
#drag {
-webkit-app-region: drag;
font-size: 12px;

View file

@ -195,7 +195,7 @@ const initBar = () => {
</svg>
</button>
<div class="fn__flex-1 fn__ellipsis" id="drag"><span class="fn__none">使 Development version, please backup before use</span></div>
<div class="fn__flex" style="top: -1px;z-index: 502;right: -1px;position: relative;" id="windowControls"></div>`;
<div class="fn__flex" id="windowControls"></div>`;
document.querySelector(".toolbar").addEventListener("click", (event: MouseEvent) => {
let target = event.target as HTMLElement;
while (!target.classList.contains("toolbar")) {