move windowControl style to base.scss (#6027)
This commit is contained in:
parent
6005027991
commit
11ba84f9dd
2 changed files with 8 additions and 1 deletions
|
@ -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;
|
||||
|
|
|
@ -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")) {
|
||||
|
|
Loading…
Add table
Reference in a new issue