Skip to content

Commit a5b067c

Browse files
committed
style(dev): improve navigation layout for better responsiveness
- Updated the navigation component to conditionally apply container styling based on the route. - Enhanced layout for improved alignment and spacing across different screen sizes.
1 parent f024797 commit a5b067c

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

apps/dev-build/src/app/(content)/events/[slug]/page.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ async function PlayerContainer({ event }: { event: Event | null }) {
210210
className="mb-5 flex w-full flex-col items-center justify-center rounded-md bg-black shadow-md sm:mb-10"
211211
>
212212
<PostPlayer
213+
postSlug={event.fields?.slug}
213214
title={event.fields?.title}
214215
thumbnailTime={event.fields?.thumbnailTime || 0}
215216
postId={event.id}

apps/dev-build/src/components/navigation/index.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,11 @@ const Navigation = ({ className }: { className?: string }) => {
9090
className,
9191
)}
9292
>
93-
<div className="container flex items-center justify-between border-x px-3 sm:px-8">
93+
<div
94+
className={cn('flex w-full items-center justify-between px-3 sm:px-8', {
95+
'container border-x': !isEditRoute,
96+
})}
97+
>
9498
<div className="flex items-center">
9599
<Link href="/" tabIndex={isRoot ? -1 : 0} className="mr-3">
96100
<Logo />

0 commit comments

Comments
 (0)