From 48814c213a0e2826debcf58c32fbd93b53c9c7fe Mon Sep 17 00:00:00 2001
From: IRHM <37304121+IRHM@users.noreply.github.com>
Date: Thu, 3 Oct 2024 23:27:04 +0100
Subject: [PATCH] Poster: Fix issues i made 11 days ago
---
src/lib/poster/ExtraDetails.svelte | 1 +
src/lib/poster/GamePoster.svelte | 51 +++++++++-----
src/lib/poster/Poster.svelte | 51 +++++++++-----
src/lib/poster/PosterRating.svelte | 109 ++++++++++++++++-------------
src/lib/poster/PosterStatus.svelte | 57 ++++++++-------
5 files changed, 157 insertions(+), 112 deletions(-)
diff --git a/src/lib/poster/ExtraDetails.svelte b/src/lib/poster/ExtraDetails.svelte
index d9699e44..ddfb398f 100644
--- a/src/lib/poster/ExtraDetails.svelte
+++ b/src/lib/poster/ExtraDetails.svelte
@@ -103,6 +103,7 @@
background-color: $poster-extra-detail-bg-color;
border-radius: 10px;
transition: opacity 100ms ease-out;
+ pointer-events: none !important;
& > div {
padding: 8px 3px;
diff --git a/src/lib/poster/GamePoster.svelte b/src/lib/poster/GamePoster.svelte
index 1a73fd18..88dfb0bc 100644
--- a/src/lib/poster/GamePoster.svelte
+++ b/src/lib/poster/GamePoster.svelte
@@ -141,6 +141,11 @@
}}
on:mouseleave={() => (posterActive = false)}
on:click={() => (posterActive = true)}
+ on:keyup={(e) => {
+ if (e.key === "Tab") {
+ e.currentTarget.scrollIntoView({ block: "center" });
+ }
+ }}
on:keypress={() => console.log("on kpress")}
class={`${posterActive ? "active " : ""}${pinned ? "pinned " : ""}`}
>
@@ -171,9 +176,11 @@