From ad84ad6b5dfcf247fa03365fbc9311ae93efce97 Mon Sep 17 00:00:00 2001 From: oppiliappan Date: Tue, 16 Dec 2025 03:52:38 +0000 Subject: [PATCH] appview/pages: restyle pull actions the loader icon now replaces the existing button icon when a request is inflight. this is much cleverer because it avoids the increase in button width when a request is inflight. --- .../repo/pulls/fragments/pullActions.html | 34 +++++++++---------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/appview/pages/templates/repo/pulls/fragments/pullActions.html b/appview/pages/templates/repo/pulls/fragments/pullActions.html index ca9241a6..9ffb0b4e 100644 --- a/appview/pages/templates/repo/pulls/fragments/pullActions.html +++ b/appview/pages/templates/repo/pulls/fragments/pullActions.html @@ -22,22 +22,22 @@ {{ $isLastRound := eq $roundNumber $lastIdx }} {{ $isSameRepoBranch := .Pull.IsBranchBased }} {{ $isUpToDate := .ResubmitCheck.No }} -
+
{{ if .BranchDeleteStatus }} {{ end }} @@ -74,7 +74,7 @@ {{ end }} hx-disabled-elt="#resubmitBtn" - class="btn p-2 flex items-center gap-2 disabled:opacity-50 disabled:cursor-not-allowed group" {{ $disabled }} + class="btn-flat p-2 flex items-center gap-2 disabled:opacity-50 disabled:cursor-not-allowed group" {{ $disabled }} {{ if $disabled }} title="Update this branch to resubmit this pull request" @@ -82,9 +82,9 @@ title="Resubmit this pull request" {{ end }} > - {{ i "rotate-ccw" "w-4 h-4" }} - resubmit + {{ i "rotate-ccw" "w-4 h-4 inline group-[.htmx-request]:hidden" }} {{ i "loader-circle" "w-4 h-4 animate-spin hidden group-[.htmx-request]:inline" }} + resubmit {{ end }} @@ -92,10 +92,10 @@ {{ end }} @@ -103,10 +103,10 @@ {{ end }}
-- 2.51.2