From 8900987e2c7f39e615d91ad993290f4a7c6467ba Mon Sep 17 00:00:00 2001 From: Daniel Kempkens Date: Mon, 21 Aug 2023 00:41:01 +0200 Subject: [PATCH] fix(chat): tag styling --- priv/templates/http/chats.eex | 8 +++----- priv/templates/http/user.eex | 6 ++++++ 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/priv/templates/http/chats.eex b/priv/templates/http/chats.eex index 5c48098..141185c 100644 --- a/priv/templates/http/chats.eex +++ b/priv/templates/http/chats.eex @@ -11,11 +11,9 @@ <%= if length(chat.tags) > 0 do %> -

- <%= for tag <- chat.tags do %> - <%= tag %> - <% end %> -

+ <%= for tag <- chat.tags do %> + <%= tag %> + <% end %> <% end %> diff --git a/priv/templates/http/user.eex b/priv/templates/http/user.eex index a833692..b62f19d 100644 --- a/priv/templates/http/user.eex +++ b/priv/templates/http/user.eex @@ -74,6 +74,12 @@
<%= chat.num_messages %> message(s) - <%= DateTime.to_iso8601(chat.latest_message) %>
+ + <%= if length(chat.tags) > 0 do %> + <%= for tag <- chat.tags do %> + <%= tag %> + <% end %> + <% end %> <% end %>