From 12598efb507a270c6b7269ee14f890a6f2d75b60 Mon Sep 17 00:00:00 2001 From: eti Date: Thu, 28 May 2026 19:01:45 +0200 Subject: [PATCH] appview/strings: fix buttons alignment Signed-off-by: eti --- appview/pages/templates/strings/string.html | 53 +++++++++++---------- 1 file changed, 28 insertions(+), 25 deletions(-) diff --git a/appview/pages/templates/strings/string.html b/appview/pages/templates/strings/string.html index c1a50f35..20c4c878 100644 --- a/appview/pages/templates/strings/string.html +++ b/appview/pages/templates/strings/string.html @@ -30,31 +30,34 @@ -
- {{ if and .LoggedInUser (eq .LoggedInUser.Did .String.Did) }} - - {{ i "pencil" "w-4 h-4" }} - - {{ i "loader-circle" "w-4 h-4 animate-spin hidden group-[.htmx-request]:inline" }} - - - {{ end }} - {{ template "fragments/starBtn" - (dict "SubjectAt" .String.AtUri - "IsStarred" .IsStarred - "StarCount" .StarCount) }} + {{ $isOwner := and .LoggedInUser (eq .LoggedInUser.Did .String.Did) }} +
+ {{ if $isOwner }} + + {{ i "pencil" "w-4 h-4" }} + + {{ i "loader-circle" "w-4 h-4 animate-spin hidden group-[.htmx-request]:inline" }} + + + {{ end }} +
+ {{ template "fragments/starBtn" + (dict "SubjectAt" .String.AtUri + "IsStarred" .IsStarred + "StarCount" .StarCount) }} +
-- 2.51.2