From f13745f15e339a5b34ef5b74e13bfb89ea449d5e Mon Sep 17 00:00:00 2001 From: CasperVerswijvelt Date: Wed, 7 Apr 2021 21:39:54 +0200 Subject: [PATCH] Make favicon not squish and add ellipsis overflow --- shynet/dashboard/templates/base.html | 2 +- .../dashboard/templates/dashboard/includes/sidebar_portal.html | 2 +- shynet/dashboard/templatetags/helpers.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/shynet/dashboard/templates/base.html b/shynet/dashboard/templates/base.html index 3a24758..b26c213 100644 --- a/shynet/dashboard/templates/base.html +++ b/shynet/dashboard/templates/base.html @@ -43,7 +43,7 @@ {% for service in user.owning_services.all %} {% contextual_url 'dashboard:service' service.uuid as url %} - {% include 'dashboard/includes/sidebar_portal.html' with label=service.name|truncatechars:16 url=url icon=service.link|iconify %} + {% include 'dashboard/includes/sidebar_portal.html' with label=service.name url=url icon=service.link|iconify %} {% endfor %} {% endif %} diff --git a/shynet/dashboard/templates/dashboard/includes/sidebar_portal.html b/shynet/dashboard/templates/dashboard/includes/sidebar_portal.html index 4cfc613..010b5fe 100644 --- a/shynet/dashboard/templates/dashboard/includes/sidebar_portal.html +++ b/shynet/dashboard/templates/dashboard/includes/sidebar_portal.html @@ -2,5 +2,5 @@
{{icon}} {{label}} + {% if disable_turbolinks %}data-turbolinks="false"{% endif %} href="{{url}}">{{icon}} {{label}}
\ No newline at end of file diff --git a/shynet/dashboard/templatetags/helpers.py b/shynet/dashboard/templatetags/helpers.py index 9cda09f..9eb11dc 100644 --- a/shynet/dashboard/templatetags/helpers.py +++ b/shynet/dashboard/templatetags/helpers.py @@ -172,7 +172,7 @@ def iconify(text): domain = text + ".com" return SafeString( - f'' + f'' )