Browse Source

HUE-7759 [core] Fix CSS push down for the top banner

Enrico Berti 8 years ago
parent
commit
6928023853

+ 1 - 1
apps/oozie/src/oozie/templates/editor2/workflow_editor.mako

@@ -601,7 +601,7 @@ ${ dashboard.import_bindings() }
 ${ utils.submit_popup_event() }
 
 <style type="text/css">
-% if conf.CUSTOM.BANNER_TOP_HTML.get():
+% if conf.CUSTOM.BANNER_TOP_HTML.get() or not is_embeddable:
   .card-toolbar {
     top: 100px!important;
   }

+ 1 - 1
apps/sqoop/src/sqoop/templates/app.mako

@@ -693,7 +693,7 @@ ${ commonheader(None, "sqoop", user, request) | n,unicode }
 <link href="${ static('sqoop/css/sqoop.css') }" rel="stylesheet">
 
 <style type="text/css">
-% if conf.CUSTOM.BANNER_TOP_HTML.get():
+% if conf.CUSTOM.BANNER_TOP_HTML.get() or not is_embeddable:
   #sqoopComponents .top-bar {
     top: 58px!important;
   }

+ 1 - 1
desktop/libs/dashboard/src/dashboard/templates/common_search.mako

@@ -2767,7 +2767,7 @@ ${ dashboard.import_layout(True) }
 ${ dashboard.import_bindings() }
 
 <style type="text/css">
-% if conf.CUSTOM.BANNER_TOP_HTML.get():
+% if conf.CUSTOM.BANNER_TOP_HTML.get() or not is_embeddable:
   .search-bar {
     top: 58px!important;
   }