From 8c5d8bf0ba3b752057b3d4557b7ba544ac83df10 Mon Sep 17 00:00:00 2001 From: trisua Date: Sun, 15 Jun 2025 19:04:56 -0400 Subject: [PATCH] fix: circle stack users ui --- crates/app/src/public/html/components.lisp | 5 +++-- crates/app/src/public/html/stacks/feed.lisp | 8 +++++--- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/crates/app/src/public/html/components.lisp b/crates/app/src/public/html/components.lisp index 7b7efcf..284ee21 100644 --- a/crates/app/src/public/html/components.lisp +++ b/crates/app/src/public/html/components.lisp @@ -174,10 +174,11 @@ ("style" "color: var(--color-primary)") (text "{{ icon \"square-asterisk\" }}")) (text "{%- endif %} {% if post.stack -%}") - (span + (a ("title" "Posted to a stack you're in") - ("class" "flex items-center") + ("class" "flex items-center flush") ("style" "color: var(--color-primary)") + ("href" "/stacks/{{ post.stack }}") (text "{{ icon \"layers\" }}")) (text "{%- endif %} {% if community and community.is_forge -%} {% if post.is_open -%}") (span diff --git a/crates/app/src/public/html/stacks/feed.lisp b/crates/app/src/public/html/stacks/feed.lisp index 0317469..3997e9c 100644 --- a/crates/app/src/public/html/stacks/feed.lisp +++ b/crates/app/src/public/html/stacks/feed.lisp @@ -65,9 +65,11 @@ (text "{% for user in list %} {{ components::user_plate(user=user, secondary=true) }} {% endfor %}")) (text "{% else %}") ; user icons for circle stack - (text "{% if stack.mode == 'Circle' -%} {% for user in stack.users %}") - (text "{{ components::avatar(username=user, selector_type=\"id\", size=\"24px\") }}") - (text "{% endfor %} {%- endif %}") + (text "{% if stack.mode == 'Circle' -%}") + (div + ("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 (text "{% for post in list %}