Skip to content

Commit 94ed64a

Browse files
committed
fix(HeroCarousel): align padding with Container
update the INDENT styling constant to add lg:pl-10 and 1320px media query, and revise the accompanying comment to reflect the new responsive padding logic
1 parent 5c895ef commit 94ed64a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

components/ui/HeroCarousel.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ import "swiper/css";
99
import { DateRow } from "@/components/ui/MetaRow";
1010
import type { Story } from "@/lib/home-content";
1111

12-
// Mirrors Container's left padding exactly: px-5 / sm:px-8 / lg:centered with max-w-[1240px]
13-
const INDENT = "pl-5 sm:pl-8 lg:pl-[max(0px,calc((100vw-1240px)/2))]";
12+
// Mirrors Container's left padding: px-5 / sm:px-8 / lg:px-10 / ≥1320px: centered with max-w-[1240px]
13+
const INDENT =
14+
"pl-5 sm:pl-8 lg:pl-10 [@media(min-width:1320px)]:pl-[max(0px,calc((100vw-1240px)/2))]";
1415

1516
function PreviewCard({ story }: { story: Story }) {
1617
return (

0 commit comments

Comments
 (0)