Convert remaining on: events to onclick/ontouchstart

This commit is contained in:
Rūdolfs Ošiņš
2024-09-10 11:55:37 +02:00
parent ffff885ffb
commit c558235a49
3 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -47,7 +47,7 @@
}
</style>
<svelte:window onclick={clickOutside} on:touchstart={clickOutside} />
<svelte:window onclick={clickOutside} ontouchstart={clickOutside} />
<div
bind:this={thisComponent}
+2 -1
View File
@@ -9,6 +9,7 @@
export let repo: RepoInfo;
export let selfDid: string;
export let onclick: (() => void) | undefined = undefined;
$: project = repo.payloads["xyz.radicle.project"]!;
</script>
@@ -36,7 +37,7 @@
styleWidth="100%"
stylePadding="8px 12px"
hoverable
on:click>
{onclick}>
<div class="container txt-small">
<div class="global-flex header">
<div class="global-flex">
+1 -1
View File
@@ -30,7 +30,7 @@
<RepoCard
{repo}
selfDid={`did:key:${config.publicKey}`}
on:click={() => {
onclick={() => {
void router.push({
resource: "repo.issues",
rid: repo.rid,