Преглед на файлове

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>