Unwrap #subscriptions

This commit is contained in:
spikecodes 2021-01-30 18:16:42 -08:00
parent 4ae2191392
commit 9c58d23b41
No known key found for this signature in database
GPG Key ID: 004CECFF9B463BCB
2 changed files with 10 additions and 15 deletions

View File

@ -257,11 +257,6 @@ aside {
/* Subscribed subreddit list */ /* Subscribed subreddit list */
#subscriptions_container {
display: inline-block;
margin-left: 10px;
}
#subscriptions { #subscriptions {
position: relative; position: relative;
border-radius: 5px; border-radius: 5px;
@ -270,6 +265,8 @@ aside {
align-items: center; align-items: center;
box-sizing: border-box; box-sizing: border-box;
font-size: 15px; font-size: 15px;
display: inline-block;
margin-left: 10px;
} }
#subscriptions > summary { #subscriptions > summary {

View File

@ -42,15 +42,13 @@
{% macro sub_list(current) -%} {% macro sub_list(current) -%}
{% if prefs.subs.len() > 0 %} {% if prefs.subs.len() > 0 %}
<div id="subscriptions_container"> <details id="subscriptions">
<details id="subscriptions"> <summary>Subscriptions</summary>
<summary>Subscriptions</summary> <div id="sub_list">
<div id="sub_list"> {% for sub in prefs.subs %}
{% for sub in prefs.subs %} <a href="/r/{{ sub }}" {% if sub == current %}class="selected"{% endif %}>{{ sub }}</a>
<a href="/r/{{ sub }}" {% if sub == current %}class="selected"{% endif %}>{{ sub }}</a> {% endfor %}
{% endfor %} </div>
</div> </details>
</details>
</div>
{% endif %} {% endif %}
{%- endmacro %} {%- endmacro %}