diff --git a/common/static/lib/css/collection.css b/common/static/lib/css/collection.css index 4db399a8..084620f9 100644 --- a/common/static/lib/css/collection.css +++ b/common/static/lib/css/collection.css @@ -174,12 +174,9 @@ div.jsoneditor-menu { aspect-ratio : 1 / 1; border-radius: 50%; background: #f7f7f7; - display: table; -} -.donut .text { - display: table-cell; - vertical-align: middle; - text-align: center; + display: flex; + align-items: center; + justify-content: center; } progress { diff --git a/journal/templates/collection.html b/journal/templates/collection.html index bc7cbd7e..eb6f0cd4 100644 --- a/journal/templates/collection.html +++ b/journal/templates/collection.html @@ -85,9 +85,6 @@ {{ collection.title }} - {% if follower_count %} - 被 {{ follower_count }} 人关注 - {% endif %}

{% for cat, count in collection.get_summary.items %} {% if count %} @@ -95,6 +92,9 @@ {% endif %} {% endfor %}

+ {% if follower_count %} +

{{ follower_count }}人关注

+ {% endif %}