From 59319578e7bbea4dc1640df7722da97c1b9ea9b8 Mon Sep 17 00:00:00 2001
From: Wolfgang Müller
Date: Fri, 21 Feb 2025 12:02:00 +0100
Subject: 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.
---
 frontend/src/lib/gallery/GalleryPage.svelte | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'frontend/src/lib/gallery/GalleryPage.svelte')

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
-- 
cgit v1.2.3-2-gb3c3

