Эх сурвалжийг харах

HUE-6473 [frontend] Move top banner into the main-page to prevent it from pushing the page down

Johan Ahlen 8 жил өмнө
parent
commit
ecc5d00

Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 0 - 0
desktop/core/src/desktop/static/desktop/css/hue.css


+ 5 - 0
desktop/core/src/desktop/static/desktop/less/hue.less

@@ -51,6 +51,11 @@ body {
   margin: 0;
   padding: 0;
   overflow: hidden;
+
+  > .navbar,
+  > .banner {
+    .flex(1);
+  }
 }
 
 .content-wrapper {

+ 5 - 5
desktop/core/src/desktop/templates/hue.mako

@@ -90,13 +90,13 @@
 
 ${ hueIcons.symbols() }
 
-% if banner_message or conf.CUSTOM.BANNER_TOP_HTML.get():
-<div class="banner">
-  ${ banner_message or conf.CUSTOM.BANNER_TOP_HTML.get() | n,unicode }
-</div>
-% endif
 
 <div class="main-page">
+  % if banner_message or conf.CUSTOM.BANNER_TOP_HTML.get():
+    <div class="banner">
+      ${ banner_message or conf.CUSTOM.BANNER_TOP_HTML.get() | n,unicode }
+    </div>
+  % endif
   <nav class="navbar navbar-default">
     <div class="navbar-inner top-nav">
       <div class="top-nav-left">

Энэ ялгаанд хэт олон файл өөрчлөгдсөн тул зарим файлыг харуулаагүй болно