From cd67dc67e2e81a4a77733ed7e58c56dc69c9c016 Mon Sep 17 00:00:00 2001 From: NejcZdovc Date: Thu, 10 Dec 2020 15:05:23 +0100 Subject: [PATCH] Adds bulk button Resolves #16 --- superset/static/blotout.css | 11 ++++++++--- superset/static/blotout.js | 2 +- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/superset/static/blotout.css b/superset/static/blotout.css index 7a3b56127d5b..d0f301902b86 100644 --- a/superset/static/blotout.css +++ b/superset/static/blotout.css @@ -5,17 +5,22 @@ header > nav { min-height: 0 !important; } +header#main-menu { + display: none; +} + header > nav .navbar-header, -header > nav .navbar-nav { +header > nav ul { display: none; } header > nav .navbar-right { + display: block; padding-top: 15px !important; - margin-bottom: -10px !important; + margin-bottom: -30px !important; } -header > nav .navbar-right .btn-default { +header > nav .navbar-right .btn-primary { display: none; } diff --git a/superset/static/blotout.js b/superset/static/blotout.js index cc519a4437f2..3ac8623bfa57 100644 --- a/superset/static/blotout.js +++ b/superset/static/blotout.js @@ -10,7 +10,7 @@ const modifyElements = () => { // Add + button to source database and table pages if (window.location.pathname === '/databaseview/list/' || window.location.pathname === '/tablemodelview/list/') { - document.querySelectorAll('header nav .navbar-right')[1].style.display = 'block' + document.querySelectorAll('header nav .navbar-right .btn-primary')[0].style.display = 'inline-block' } // remove reset password button from user page