From 40d8a79ef4ed90482efef738bf2153d2298e2677 Mon Sep 17 00:00:00 2001 From: Aman Agrawal Date: Thu, 6 Aug 2020 12:05:18 +0530 Subject: [PATCH] recent_topics: Fill all vertical space available. --- static/styles/recent_topics.css | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/static/styles/recent_topics.css b/static/styles/recent_topics.css index c71956e22f..356be459cf 100644 --- a/static/styles/recent_topics.css +++ b/static/styles/recent_topics.css @@ -62,9 +62,11 @@ } .table_fix_head { - padding: 10px; - padding-top: 0 !important; - max-height: 89%; + padding: 0 !important; + /* 100px = space occupied by `recent_topics_filter_buttons`( ~49px) + + give user some extra space at the bottom so that last + topic row is clearly visible. */ + max-height: calc(100vh - 100px); } .table_fix_head table { @@ -72,11 +74,6 @@ border-collapse: separate; } - .table_fix_head { - max-height: 80vh; - padding-top: 0px !important; - } - #recent_topics_filter_buttons { margin: 0 10px 0 10px; display: flex;