Commit 297820b6 authored by 八千流's avatar 八千流 Committed by BaiJiangJie

[Update] 优化组织名字过长显示不友好问题 (#2855)

* [Update] 优化组织名字过长显示不友好问题

* [Update] 优化组织名字前端盒子默认最小宽度为220px
parent abad9294
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
</div> </div>
{% if ADMIN_ORGS and request.COOKIES.IN_ADMIN_PAGE != 'No' %} {% if ADMIN_ORGS and request.COOKIES.IN_ADMIN_PAGE != 'No' %}
{% if ADMIN_ORGS|length > 1 or not CURRENT_ORG.is_default %} {% if ADMIN_ORGS|length > 1 or not CURRENT_ORG.is_default %}
<div style="height: 55px;"> <div>
<a class="dropdown-toggle" data-toggle="dropdown" aria-expanded="false" style="display: block; background-color: transparent; color: #8095a8; padding: 14px 20px 14px 25px"> <a class="dropdown-toggle" data-toggle="dropdown" aria-expanded="false" style="display: block; background-color: transparent; color: #8095a8; padding: 14px 20px 14px 25px">
<i class="fa fa-bookmark" style="width: 14px; "></i> <i class="fa fa-bookmark" style="width: 14px; "></i>
<span class="nav-label" style="padding-left: 7px"> <span class="nav-label" style="padding-left: 7px">
...@@ -19,15 +19,13 @@ ...@@ -19,15 +19,13 @@
</span> </span>
<span class="fa fa-sort-desc pull-right"></span> <span class="fa fa-sort-desc pull-right"></span>
</a> </a>
<ul class="dropdown-menu" style="width: 219px;"> <ul class="dropdown-menu" style="min-width: 220px">
{% for org in ADMIN_ORGS %} {% for org in ADMIN_ORGS %}
<li> <li>
<a class="org-dropdown" <a class="org-dropdown" href="{% url 'orgs:org-switch' pk=org.id %}" data-id="{{ org.id }}">
href="{% url 'orgs:org-switch' pk=org.id %}"
data-id="{{ org.id }}">
{{ org.name }} {{ org.name }}
{% if org.id == CURRENT_ORG.id %} {% if org.id == CURRENT_ORG.id %}
<span class="fa fa-circle pull-right" style="padding-top: 5px; color: #1ab394"></span> <span class="fa fa-circle" style="padding-top: 5px; color: #1ab394"></span>
{% endif %} {% endif %}
</a> </a>
</li> </li>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment