From 33ac6e23b8d95ad21bc056b2a2a60712da324f89 Mon Sep 17 00:00:00 2001 From: eti Date: Thu, 10 Sep 2026 10:52:35 +0200 Subject: [PATCH] web/components/pulls: reset the row flip with the column Signed-off-by: eti --- web/src/lib/components/repo/pulls/PullCommitRow.svelte | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web/src/lib/components/repo/pulls/PullCommitRow.svelte b/web/src/lib/components/repo/pulls/PullCommitRow.svelte index b7284b4bc..521c35bb0 100644 --- a/web/src/lib/components/repo/pulls/PullCommitRow.svelte +++ b/web/src/lib/components/repo/pulls/PullCommitRow.svelte @@ -30,9 +30,10 @@ }: Props = $props(); let expanded = $state(false); - let flipped = $state(false); + let flippedAgainst = $state(null); const changeId = $derived(commit.changeId?.slice(0, 8)); + const flipped = $derived(flippedAgainst === showChangeId); const showingChangeId = $derived(flipped ? !showChangeId : showChangeId); const id = $derived(showingChangeId && changeId ? changeId : commit.shortHash); @@ -47,7 +48,7 @@ -- 2.54.0