summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorWolfgang Müller2025-02-21 12:02:00 +0100
committerWolfgang Müller2025-02-21 12:12:48 +0100
commit59319578e7bbea4dc1640df7722da97c1b9ea9b8 (patch)
treed5871f94e4dc019452ba791deea05c2277ff3280
parentfe7880e6f36abb8d2c25398844790274cd08c78b (diff)
downloadhircine-59319578e7bbea4dc1640df7722da97c1b9ea9b8.tar.gz
frontend: Rename 'press' to 'unclick' in GalleryPage
This makes prop passing nicer and is in line with how the rest of the app formats this kind of thing.
-rw-r--r--frontend/src/lib/gallery/GalleryPage.svelte6
1 files changed, 3 insertions, 3 deletions
diff --git a/frontend/src/lib/gallery/GalleryPage.svelte b/frontend/src/lib/gallery/GalleryPage.svelte
index cca8ff3..13bbfc8 100644
--- a/frontend/src/lib/gallery/GalleryPage.svelte
+++ b/frontend/src/lib/gallery/GalleryPage.svelte
@@ -27,7 +27,7 @@
}
});
- function press(event: MouseEvent | KeyboardEvent) {
+ function onclick(event: MouseEvent | KeyboardEvent) {
if (event instanceof KeyboardEvent && event.key !== 'Enter') {
return;
}
@@ -57,8 +57,8 @@
role="button"
tabindex="0"
class="{span} relative overflow-hidden rounded-sm focus-visible:outline-4 focus-visible:outline-blue-600"
- onclick={press}
- onkeydown={press}
+ {onclick}
+ onkeydown={onclick}
>
<SelectionOverlay position="top" {selected} />
<img