From da9bf3b3e0fd52b5bfb37e8cf98177ed007a274c Mon Sep 17 00:00:00 2001 From: teddit Date: Wed, 20 Jan 2021 21:33:48 +0100 Subject: [PATCH] display number of results in search --- static/css/styles.css | 4 ++++ views/search.pug | 1 + 2 files changed, 5 insertions(+) diff --git a/static/css/styles.css b/static/css/styles.css index f27b254..a401c79 100644 --- a/static/css/styles.css +++ b/static/css/styles.css @@ -1134,6 +1134,10 @@ a.sub-to-subreddit.gray { border-radius: 0px; margin-bottom: 11px; } +p.number-of-results { + font-size: 0.9rem; + margin: 0px 0px 20px 20px; +} /* REDDIT STYLES */ .md .md-spoiler-text { border-radius:2px; diff --git a/views/search.pug b/views/search.pug index 1abaab7..e5bdc1a 100644 --- a/views/search.pug +++ b/views/search.pug @@ -100,6 +100,7 @@ html if json.posts.length === 0 && !no_query p no results else + p.number-of-results results: #{json.posts.length} each link in json.posts .link .upvotes