Kaynağa Gözat

Fix breadcrumbs margins

Denis K 8 yıl önce
ebeveyn
işleme
e4837cffd8

+ 1 - 9
jet/dashboard/templates/admin/app_index.html

@@ -23,15 +23,7 @@
 
 {% block breadcrumbs %}
     {% if not is_popup %}
-        <div class="breadcrumbs">
-            <a href="{% url 'admin:index' %}">{% trans 'Home' %}</a>
-            &rsaquo;
-            {% for app in app_list %}
-                {% if app.name != app.app_label|capfirst|escape %}{{ app.name }}{% else %}{% trans app.app_label as app_label %}{{ app_label|capfirst|escape }}{% endif %}
-            {% endfor %}
-        </div>
-    {% else %}
-        {{ block.super }}
+        <div class="breadcrumbs"></div>
     {% endif %}
 
     {% get_dashboard 'app_index' as dashboard %}

+ 4 - 1
jet/dashboard/templates/admin/index.html

@@ -22,7 +22,10 @@
 {% block sidebar %}{% endblock %}
 
 {% block breadcrumbs %}
-    {{ block.super }}
+    {% if not is_popup %}
+        <div class="breadcrumbs"></div>
+    {% endif %}
+
     {% get_dashboard 'index' as dashboard %}
     {{ dashboard.render_tools }}
 {% endblock %}

+ 2 - 0
jet/static/jet/css/_dashboard.scss

@@ -35,6 +35,8 @@
   }
 
   .breadcrumbs {
+    margin-bottom: 20px;
+
     @include for-mobile {
       display: none;
     }