From 28bb48905a2104adad65508f51737f987dc1ad4c Mon Sep 17 00:00:00 2001 From: Jeremy Benoist Date: Sun, 9 Oct 2016 18:41:19 +0200 Subject: Optimize the way tag list is rendered MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Instead of retrieve all informations about entries of a tag to just count them, we’ll count them before with a fastest query. Also change the layout of the tag list in material design --- app/Resources/static/themes/material/css/main.css | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'app/Resources/static/themes') diff --git a/app/Resources/static/themes/material/css/main.css b/app/Resources/static/themes/material/css/main.css index b66c88f9..121e7bf4 100755 --- a/app/Resources/static/themes/material/css/main.css +++ b/app/Resources/static/themes/material/css/main.css @@ -414,9 +414,9 @@ main ul.row { max-width: 50%; } -.card .card-entry-labels li { +.card .card-entry-labels li, .card-tag-labels li { margin: 10px 10px 10px auto; - padding: 5px 12px 5px 16px; + padding: 5px 12px 5px 16px !important; background-color: rgba(0, 151, 167, 0.85); border-radius: 0 3px 3px 0; color: #fff; @@ -447,6 +447,7 @@ main ul.row { .card-entry-tags a, .card-entry-labels a, +.card-tag-labels a, .card-entry-labels-hidden a, #list .chip a { text-decoration: none; -- cgit v1.2.3