mirror of https://github.com/apache/superset.git
Allow specifying custom width for logo (#6739)
This commit is contained in:
parent
d65059b06a
commit
cf1a35b94b
|
@ -110,6 +110,7 @@ APP_NAME = 'Superset'
|
||||||
|
|
||||||
# Uncomment to setup an App icon
|
# Uncomment to setup an App icon
|
||||||
APP_ICON = '/static/assets/images/superset-logo@2x.png'
|
APP_ICON = '/static/assets/images/superset-logo@2x.png'
|
||||||
|
APP_ICON_WIDTH = 126
|
||||||
|
|
||||||
# Druid query timezone
|
# Druid query timezone
|
||||||
# tz.tzutc() : Using utc timezone
|
# tz.tzutc() : Using utc timezone
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
{% set menu = appbuilder.menu %}
|
{% set menu = appbuilder.menu %}
|
||||||
{% set languages = appbuilder.languages %}
|
{% set languages = appbuilder.languages %}
|
||||||
{% set WARNING_MSG = appbuilder.app.config.get('WARNING_MSG') %}
|
{% 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="navbar navbar-static-top {{menu.extra_classes}}" role="navigation">
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
|
@ -30,7 +31,7 @@
|
||||||
</button>
|
</button>
|
||||||
<a class="navbar-brand" href="/superset/profile/{{ current_user.username }}/">
|
<a class="navbar-brand" href="/superset/profile/{{ current_user.username }}/">
|
||||||
<img
|
<img
|
||||||
width="126"
|
width="{{ app_icon_width }}"
|
||||||
src="{{ appbuilder.app_icon }}"
|
src="{{ appbuilder.app_icon }}"
|
||||||
alt="{{ appbuilder.app_name }}"
|
alt="{{ appbuilder.app_name }}"
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Reference in New Issue