diff options
author | citrons <citrons@mondecitronne.com> | 2025-06-16 21:25:13 -0500 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2025-06-17 12:05:16 +0100 |
commit | 52cbecab5197d672c40a0f3ee479f079ee56fc48 (patch) | |
tree | a125cd1422d6972181879c937797c834c222d7c8 /apioforum/templates | |
parent | b84b42ea4a61784dd45f4781530f0dee86f51578 (diff) |
improve thread filter selection appearance
it behaves more sensibly when there are a lot of tags
Diffstat (limited to 'apioforum/templates')
-rw-r--r-- | apioforum/templates/view_forum.html | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/apioforum/templates/view_forum.html b/apioforum/templates/view_forum.html index b7309bf..fe82532 100644 --- a/apioforum/templates/view_forum.html +++ b/apioforum/templates/view_forum.html @@ -77,21 +77,23 @@ you do not have permission to create threads in this forum {{ sortby_option("ca", "creation time (oldest first)") }} </select> <p>filter by tag:</p> - <input {% if tagfilter_tag is none %}checked{% endif %} type=radio id=tagfilter-none name=tagfilter value=""> - <label for=tagfilter-none>don't</label> - - {% for the_tag in avail_tags %} - - <input type="radio" id="tagfilter-{{the_tag.id}}" - name="tagfilter" value="{{the_tag.id}}" - {% if tagfilter_tag.id == the_tag.id %}checked{% endif %}> - <label for="tagfilter-{{the_tag.id}}"> - {{tag(the_tag)}} - </label> - {% endfor %} - <br> - + <section class="tag-filters"> + <div> + <input {% if tagfilter_tag is none %}checked{% endif %} type=radio id=tagfilter-none name=tagfilter value=""> + <label for=tagfilter-none>don't</label> + </div> + {% for the_tag in avail_tags %} + <div> + <input type="radio" id="tagfilter-{{the_tag.id}}" + name="tagfilter" value="{{the_tag.id}}" + {% if tagfilter_tag.id == the_tag.id %}checked{% endif %}> + <label for="tagfilter-{{the_tag.id}}"> + {{tag(the_tag)}} + </label> + </div> + {% endfor %} + </section> <input type="submit" value="apply"> </fieldset> </form> |