From 2200dfb8e9c6a4884bc754a143404ac12507cb6a Mon Sep 17 00:00:00 2001 From: Amalie Date: Fri, 16 Oct 2026 15:35:26 +0200 Subject: [PATCH] =?UTF-8?q?Har=20endret=20st=C3=B8rrelse=20p=C3=A5=20slide?= =?UTF-8?q?show=20(#122)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/components/slideshow/RecipeSlideshow.tsx | 6 +++--- client/src/routes/HomePage.tsx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/client/src/components/slideshow/RecipeSlideshow.tsx b/client/src/components/slideshow/RecipeSlideshow.tsx index f22a70d..0a0473e 100644 --- a/client/src/components/slideshow/RecipeSlideshow.tsx +++ b/client/src/components/slideshow/RecipeSlideshow.tsx @@ -52,7 +52,7 @@ export function RecipeSlideshow({ recipes }: RecipeSlideshowProps) { }, [emblaApi]); return ( -
+
{/* Vinduet: det skjuler slidene som ikke vises */}
{/* Raden med alle slidene som Embla flytter sidelengs */} @@ -104,7 +104,7 @@ export function RecipeSlideshow({ recipes }: RecipeSlideshowProps) { type="button" aria-label="Forrige oppskrift" onClick={() => emblaApi?.scrollPrev()} - className="absolute left-0 top-1/2 -translate-y-1/2 hidden md:flex h-12 w-12 items-center justify-center rounded-full bg-background/80 hover:bg-background focus-visible:outline-2 focus-visible:outline-primary" + className="absolute -left-12 top-1/2 -translate-y-1/2 hidden md:flex h-12 w-12 items-center justify-center rounded-full bg-background/80 hover:bg-background focus-visible:outline-2 focus-visible:outline-primary" > @@ -112,7 +112,7 @@ export function RecipeSlideshow({ recipes }: RecipeSlideshowProps) { type="button" aria-label="Neste oppskrift" onClick={() => emblaApi?.scrollNext()} - className="absolute right-0 top-1/2 -translate-y-1/2 hidden md:flex h-12 w-12 items-center justify-center rounded-full bg-background/80 hover:bg-background focus-visible:outline-2 focus-visible:outline-primary" + className="absolute -right-12 top-1/2 -translate-y-1/2 hidden md:flex h-12 w-12 items-center justify-center rounded-full bg-background/80 hover:bg-background focus-visible:outline-2 focus-visible:outline-primary" > diff --git a/client/src/routes/HomePage.tsx b/client/src/routes/HomePage.tsx index 88c48cb..ca671ee 100644 --- a/client/src/routes/HomePage.tsx +++ b/client/src/routes/HomePage.tsx @@ -18,7 +18,7 @@ export default function HomePage() { return (
-
+
{/* Viser en melding mens oppskriftene lastes eller hvis noe går galt. */} {loading &&

Laster oppskrifter ...

}