Commit 76ae18c6 authored by 神楽坂玲奈's avatar 神楽坂玲奈

webview hide

parent e97693b2
...@@ -82,15 +82,3 @@ li > a:hover, #window-buttons > i:hover { ...@@ -82,15 +82,3 @@ li > a:hover, #window-buttons > i:hover {
.navbar { .navbar {
border-radius: initial; border-radius: initial;
} }
/* https://github.com/electron/electron/issues/7661#event-827104990 */
webview.hide {
width: 0;
height: 0;
flex: 0 1;
display: inherit;
}
.hide {
display: none;
}
\ No newline at end of file
...@@ -31,8 +31,8 @@ ...@@ -31,8 +31,8 @@
</div> </div>
</nav> </nav>
<login class="page" [ngClass]="{hide: currentPage!= 'login'}"></login> <login class="page" [hidden]="currentPage!= 'login'"></login>
<store class="page" [ngClass]="{hide: currentPage!= 'store'}"></store> <store class="page" [hidden]="currentPage!= 'store'"></store>
<lobby class="page" [ngClass]="{hide: currentPage!= 'lobby'}"></lobby> <lobby class="page" [hidden]="currentPage!= 'lobby'"></lobby>
<webview id="community" class="page" [ngClass]="{hide: currentPage!= 'community'}" <webview id="community" class="page" [hidden]=" currentPage!= 'community'"
src="https://ygobbs.com"></webview> src="https://ygobbs.com"></webview>
\ No newline at end of file
...@@ -20,5 +20,9 @@ webview[hidden] { ...@@ -20,5 +20,9 @@ webview[hidden] {
width: 0; width: 0;
height: 0; height: 0;
flex: 0 1; flex: 0 1;
display: inherit; display: block;
}
#candy {
flex: 0 1;
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment