From 13eab483fa562522e47d5aaa1ab063231a71cd48 Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 16 Jan 2023 22:26:13 -0500 Subject: [PATCH] minor collection display fix --- common/static/lib/css/collection.css | 9 +++------ journal/templates/collection.html | 6 +++--- 2 files changed, 6 insertions(+), 9 deletions(-) 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 %}