Add right-click menu to issue and patch lists

This commit is contained in:
Brandon Oxendine
2026-10-20 15:44:56 +02:00
committed by Rūdolfs Ošiņš
parent 95405a07cb
commit 41e5b96b09
16 changed files with 942 additions and 23 deletions
+8 -2
View File
@@ -23,13 +23,16 @@
import ReviewSummary from "@app/components/ReviewSummary.svelte";
interface Props {
contextActive?: boolean;
focussed?: boolean;
oncontextmenu?: (event: MouseEvent) => void;
patch: Patch;
rid: string;
status: PatchStatus | undefined;
}
const { focussed, patch, rid, status }: Props = $props();
const { contextActive, focussed, oncontextmenu, patch, rid, status }: Props =
$props();
// Drafts belong to an identity, so the marker has to know who is signed in.
// Until the config arrives the marker stays off rather than showing someone
@@ -70,7 +73,8 @@
word-break: break-word;
width: 100%;
}
.patch-teaser:hover {
.patch-teaser:hover,
.patch-teaser.context-active {
background-color: var(--color-surface-subtle);
}
.status {
@@ -94,6 +98,8 @@
tabindex="0"
role="button"
class="patch-teaser"
class:context-active={contextActive}
{oncontextmenu}
style:align-items="flex-start"
style:clip-path={focussed ? "none" : undefined}
style:padding={focussed ? "1rem" : "1.25rem"}