From cf1a35b94b958159b31ae404bd0ce3a1223b3181 Mon Sep 17 00:00:00 2001 From: Beto Dealmeida Date: Tue, 22 Jan 2019 14:25:49 -0800 Subject: [PATCH] Allow specifying custom width for logo (#6739) --- superset/config.py | 1 + superset/templates/appbuilder/navbar.html | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/superset/config.py b/superset/config.py index abced7ada7..6271ce64c8 100644 --- a/superset/config.py +++ b/superset/config.py @@ -110,6 +110,7 @@ APP_NAME = 'Superset' # Uncomment to setup an App icon APP_ICON = '/static/assets/images/superset-logo@2x.png' +APP_ICON_WIDTH = 126 # Druid query timezone # tz.tzutc() : Using utc timezone diff --git a/superset/templates/appbuilder/navbar.html b/superset/templates/appbuilder/navbar.html index 0646286c2b..88f491999a 100644 --- a/superset/templates/appbuilder/navbar.html +++ b/superset/templates/appbuilder/navbar.html @@ -19,6 +19,7 @@ {% set menu = appbuilder.menu %} {% set languages = appbuilder.languages %} {% set WARNING_MSG = appbuilder.app.config.get('WARNING_MSG') %} +{% set app_icon_width = appbuilder.app.config.get('APP_ICON_WIDTH', 126) %}