Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions client/src/components/slideshow/RecipeSlideshow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export function RecipeSlideshow({ recipes }: RecipeSlideshowProps) {
}, [emblaApi]);

return (
<section aria-label="Utvalgte oppskrifter" className="relative md:px-16">
<section aria-label="Utvalgte oppskrifter" className="relative md:px-2">
{/* Vinduet: det skjuler slidene som ikke vises */}
<div className="overflow-hidden" ref={emblaRef}>
{/* Raden med alle slidene som Embla flytter sidelengs */}
Expand Down Expand Up @@ -104,15 +104,15 @@ 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"
>
<ArrowBackIcon/>
</button>
<button
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"
>
<ArrowForwardIcon/>
</button>
Expand Down
2 changes: 1 addition & 1 deletion client/src/routes/HomePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default function HomePage() {
return (
<main className="bg-background min-h-screen">

<div className="mx-auto px-6 py-10">
<div className="mx-auto px-6 pt-0 md:pt-2">

{/* Viser en melding mens oppskriftene lastes eller hvis noe går galt. */}
{loading && <p role="status">Laster oppskrifter ...</p>}
Expand Down