From 7678efedc88877acc3a058c675f1e2e01d79649a Mon Sep 17 00:00:00 2001 From: null Date: Fri, 22 May 2026 00:41:19 -0500 Subject: [PATCH] fix(ui): clow window button spacing --- .../git/ForgejoIssueDetailDialog.tsx | 87 ++++++++++--------- 1 file changed, 44 insertions(+), 43 deletions(-) diff --git a/frontend/src/components/git/ForgejoIssueDetailDialog.tsx b/frontend/src/components/git/ForgejoIssueDetailDialog.tsx index df37cba..668f14f 100644 --- a/frontend/src/components/git/ForgejoIssueDetailDialog.tsx +++ b/frontend/src/components/git/ForgejoIssueDetailDialog.tsx @@ -116,6 +116,7 @@ export function ForgejoIssueDetailDialog({ const active = detail ?? issue; const body = detail?.body ?? issue.body ?? issue.body_preview ?? ""; const stateVariant = active.state === "open" ? "success" : "default"; + const showCloseIssue = canClose && active.state === "open"; const handleCloseIssueSuccess = () => { if (detail) setDetail({ ...detail, state: "closed" }); @@ -149,9 +150,9 @@ export function ForgejoIssueDetailDialog({ <> - -
-
+ +
+
{active.title} @@ -167,49 +168,49 @@ export function ForgejoIssueDetailDialog({ Updated {formatDateTime(active.forgejo_updated_at)}
-
+ {showCloseIssue ? ( - - {canClose && active.state === "open" ? ( - - ) : null} - - Open in Forgejo - - -
+ ) : null} +
+
+ + + + Open in Forgejo + +
@@ -376,9 +377,9 @@ export function ForgejoIssueDetailDialog({ -
+