simplify contain-svg css

This commit is contained in:
2025-11-21 06:07:23 +03:00
parent 4b70ae1b43
commit 10934c557d
7 changed files with 27 additions and 51 deletions

View File

@@ -34,24 +34,28 @@
<div class="thread">
<div class="thread-sticky-container contain-svg">
{% if thread['is_stickied'] %}
{{ icn_sticky() }}
{{ icn_sticky(48) }}
<i>Stickied</i>
{% endif %}
</div>
<div class="thread-info-container">
<span class="thread-info-header">
<span class="thread-title"><a href="{{ url_for("threads.thread", slug=thread['slug']) }}">{{thread['title']}}</a>
{% if thread['id'] in subscriptions %}
({{ subscriptions[thread['id']] }} unread)
{% endif %}
</span>
&bullet;
<span>
Started by <a href="{{ url_for("users.page", username=thread['started_by']) }}">{{ thread['started_by'] }}</a> on {{ timestamp(thread['created_at']) }}
<span class="thread-title"><a href="{{ url_for("threads.thread", slug=thread['slug']) }}">{{thread['title']}}</a>
{% if thread['id'] in subscriptions %}
({{ subscriptions[thread['id']] }} unread)
{% endif %}
</span>
&bullet;
<span>
Started by <a href="{{ url_for("users.page", username=thread['started_by']) }}">{{ thread['started_by'] }}</a> on {{ timestamp(thread['created_at']) }}
</span>
</span>
<span>
{% if active_user and not active_user.is_guest() -%}
<button class="thread-info-bookmark-button contain-svg icon" type="button">{{ icn_bookmark() }}Bookmark</button>
{%- endif %}
</span>
{% if active_user and not active_user.is_guest() -%}
<button class="thread-info-bookmark-button contain-svg icon" type="button">{{ icn_bookmark() }}Bookmark</button>
{%- endif %}
</span>
<span>
Latest post by <a href="{{ url_for("users.page", username=thread['latest_post_username']) }}">{{ thread['latest_post_username'] }}</a>
@@ -63,7 +67,7 @@
</div>
<div class="thread-locked-container contain-svg">
{% if thread['is_locked'] %}
{{ icn_lock() }}
{{ icn_lock(48) }}
<i>Locked</i>
{% endif %}
</div>