瀏覽代碼

gui: Prevent log bar from flashing up while page is loading

The log bar is hidden by CSS, but will appear briefly while the page is
loading (after the html is fetched, but before dev.css is fetched).

Hide it by using an inline style instead, so this does not happen.

GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3220
Antony Male 9 年之前
父節點
當前提交
56b6383407
共有 2 個文件被更改,包括 1 次插入2 次删除
  1. 0 1
      gui/default/assets/css/dev.css
  2. 1 1
      gui/default/syncthing/development/logbar.html

+ 0 - 1
gui/default/assets/css/dev.css

@@ -1,5 +1,4 @@
 .dev-top-bar{
-    display: none;
     background-color: yellow;
 }
 

+ 1 - 1
gui/default/syncthing/development/logbar.html

@@ -1,4 +1,4 @@
-<div class="dev-top-bar" id="dev-top-bar">
+<div class="dev-top-bar" id="dev-top-bar" style="display: none">
     <link href="assets/css/dev.css" rel="stylesheet">
     <div class="row">
         <div class="col-xs-4"><b>DEV</b></div>