Quellcode durchsuchen

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 vor 9 Jahren
Ursprung
Commit
56b6383407
2 geänderte Dateien mit 1 neuen und 2 gelöschten Zeilen
  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>