Commit 19c6546c authored by 神楽坂玲奈's avatar 神楽坂玲奈

fix webview hide

parent 222e2ad3
...@@ -65,6 +65,7 @@ nav.darwin { ...@@ -65,6 +65,7 @@ nav.darwin {
a { a {
cursor: default; cursor: default;
} }
#window-buttons.darwin { #window-buttons.darwin {
display: none; display: none;
} }
...@@ -81,3 +82,10 @@ li > a:hover, #window-buttons > i:hover { ...@@ -81,3 +82,10 @@ li > a:hover, #window-buttons > i:hover {
.navbar { .navbar {
border-radius: initial; border-radius: initial;
} }
/* https://github.com/electron/electron/issues/7661#event-827104990 */
.hide {
width: 0;
height: 0;
flex: 0 1;
}
\ No newline at end of file
...@@ -31,42 +31,8 @@ ...@@ -31,42 +31,8 @@
</div> </div>
</nav> </nav>
<login class="page" [ngClass]="{hide: routingService.component != 'login'}"></login>
<!-- Fixed navbar --> <store class="page" [ngClass]="{hide: routingService.component != 'store'}"></store>
<!--<div class="pos-f-t"> <lobby class="page" [ngClass]="{hide: routingService.component != 'lobby'}"></lobby>
<div class="collapse" id="navbar-header"> <webview id="community" class="page" [ngClass]="{hide: routingService.component != 'community'}"
<div class="container bg-inverse p-a-1">
<h3>Collapsed content</h3>
<p>Toggleable via the navbar brand.</p>
</div>
</div>
<nav class="navbar navbar-light navbar-static-top bg-faded">
<div class="container">
<button class="navbar-toggler hidden-sm-up" type="button" data-toggle="collapse" data-target="#exCollapsingNavbar2">
&#9776;
</button>
<div class="collapse navbar-toggleable-xs" id="exCollapsingNavbar2">
<a class="navbar-brand" href="#">Sticky footer</a>
<ul class="nav navbar-nav">
<li class="nav-item active">
<a class="nav-link" href="#">Nav item <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Another nav item</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">More nav</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Last link</a>
</li>
</ul>
</div>
</div>
</nav>
</div>-->
<login class="page" [hidden]="routingService.component != 'login'"></login>
<store class="page" [hidden]="routingService.component != 'store'"></store>
<lobby class="page" [hidden]="routingService.component != 'lobby'"></lobby>
<webview id="community" class="page" [hidden]="routingService.component != 'community'"
src="https://ygobbs.com"></webview> src="https://ygobbs.com"></webview>
\ 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