This is an automated email from the ASF dual-hosted git repository.
beto pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git
The following commit(s) were added to refs/heads/master by this push:
new cf1a35b Allow specifying custom width for logo (#6739)
cf1a35b is described below
commit cf1a35b94b958159b31ae404bd0ce3a1223b3181
Author: Beto Dealmeida <[email protected]>
AuthorDate: Tue Jan 22 14:25:49 2019 -0800
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 abced7a..6271ce6 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/[email protected]'
+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 0646286..88f4919 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) %}
<div class="navbar navbar-static-top {{menu.extra_classes}}" role="navigation">
<div class="container-fluid">
@@ -30,7 +31,7 @@
</button>
<a class="navbar-brand" href="/superset/profile/{{ current_user.username
}}/">
<img
- width="126"
+ width="{{ app_icon_width }}"
src="{{ appbuilder.app_icon }}"
alt="{{ appbuilder.app_name }}"
/>