Skip to content

Commit

Permalink
Allow specifying custom width for logo (#6739)
Browse files Browse the repository at this point in the history
(cherry picked from commit cf1a35b)
  • Loading branch information
betodealmeida authored and xtinec committed Feb 5, 2019
1 parent 7f86517 commit aff43c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions superset/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@

# 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
Expand Down
3 changes: 2 additions & 1 deletion superset/templates/appbuilder/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand All @@ -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 }}"
/>
Expand Down

0 comments on commit aff43c7

Please sign in to comment.