fix: circle stack users ui

This commit is contained in:
trisua 2025-06-15 19:04:56 -04:00
parent 9443bfb58d
commit 8c5d8bf0ba
2 changed files with 8 additions and 5 deletions

View file

@ -174,10 +174,11 @@
("style" "color: var(--color-primary)") ("style" "color: var(--color-primary)")
(text "{{ icon \"square-asterisk\" }}")) (text "{{ icon \"square-asterisk\" }}"))
(text "{%- endif %} {% if post.stack -%}") (text "{%- endif %} {% if post.stack -%}")
(span (a
("title" "Posted to a stack you're in") ("title" "Posted to a stack you're in")
("class" "flex items-center") ("class" "flex items-center flush")
("style" "color: var(--color-primary)") ("style" "color: var(--color-primary)")
("href" "/stacks/{{ post.stack }}")
(text "{{ icon \"layers\" }}")) (text "{{ icon \"layers\" }}"))
(text "{%- endif %} {% if community and community.is_forge -%} {% if post.is_open -%}") (text "{%- endif %} {% if community and community.is_forge -%} {% if post.is_open -%}")
(span (span

View file

@ -65,9 +65,11 @@
(text "{% for user in list %} {{ components::user_plate(user=user, secondary=true) }} {% endfor %}")) (text "{% for user in list %} {{ components::user_plate(user=user, secondary=true) }} {% endfor %}"))
(text "{% else %}") (text "{% else %}")
; user icons for circle stack ; user icons for circle stack
(text "{% if stack.mode == 'Circle' -%} {% for user in stack.users %}") (text "{% if stack.mode == 'Circle' -%}")
(text "{{ components::avatar(username=user, selector_type=\"id\", size=\"24px\") }}") (div
(text "{% endfor %} {%- endif %}") ("class" "flex w-full gap-2 flex-wrap")
(text "{% for user in stack.users %} {{ components::avatar(username=user, selector_type=\"id\", size=\"24px\") }} {% endfor %}"))
(text "{%- endif %}")
; posts for all stacks except blocklist ; posts for all stacks except blocklist
(text "{% for post in list %} (text "{% for post in list %}