From 13394b4a5e338274d9461eac5dead250e1098833 Mon Sep 17 00:00:00 2001 From: fawn Date: Wed, 7 Jun 2023 13:51:27 +0300 Subject: [PATCH] Add ability to hide subreddit panel (closes #801) --- static/style.css | 6 +++++- templates/subreddit.html | 5 +++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/static/style.css b/static/style.css index 52c14b8..bad0c75 100644 --- a/static/style.css +++ b/static/style.css @@ -380,13 +380,17 @@ aside { border-radius: 5px; overflow: hidden; } +#subreddit, #sidebar { min-width: 350px; } #user *, #subreddit * { text-align: center; } #user, #sub_meta, #sidebar_contents { padding: 20px; } #sidebar, #sidebar_contents { margin-top: 10px; } -#sidebar_label { padding: 10px; } +#sidebar_label, #subreddit_label { + padding: 10px; + text-align: left; +} #user_icon, #sub_icon { width: 100px; diff --git a/templates/subreddit.html b/templates/subreddit.html index 9ad1932..2584ca3 100644 --- a/templates/subreddit.html +++ b/templates/subreddit.html @@ -88,7 +88,8 @@
(Content from r/{{ sub.name }} has been filtered)
{% endif %} {% if !sub.name.is_empty() && sub.name != "all" && sub.name != "popular" && !sub.name.contains("+") %} -
+
+ Subreddit {% if sub.wiki %}
Posts
@@ -131,7 +132,7 @@
- +