fix : use admin style nav
This commit is contained in:
@@ -51,7 +51,7 @@ export function GuideShell({ snapshot }: { snapshot: PageSnapshot }) {
|
|||||||
</div>
|
</div>
|
||||||
<ScrollableNav
|
<ScrollableNav
|
||||||
ariaLabel={`หน้าคู่มือ ${snapshot.character.nameTh}`}
|
ariaLabel={`หน้าคู่มือ ${snapshot.character.nameTh}`}
|
||||||
className="min-h-11 border-t"
|
className="min-h-11 rounded-xl border bg-card p-2"
|
||||||
>
|
>
|
||||||
{snapshot.pages.map((page) => (
|
{snapshot.pages.map((page) => (
|
||||||
<Link
|
<Link
|
||||||
|
|||||||
@@ -92,25 +92,25 @@ export function StructuredGuideShell({
|
|||||||
</div>
|
</div>
|
||||||
<ScrollableNav
|
<ScrollableNav
|
||||||
ariaLabel={`เมนูคู่มือ ${guide.name}`}
|
ariaLabel={`เมนูคู่มือ ${guide.name}`}
|
||||||
className="mx-auto min-h-11 w-full max-w-7xl px-4 sm:px-6"
|
className="mx-auto min-h-11 w-full max-w-7xl rounded-xl border bg-card p-2"
|
||||||
>
|
>
|
||||||
<Link
|
<Link
|
||||||
href={`/${guide.slug}`}
|
href={`/${guide.slug}`}
|
||||||
className={cn(
|
className={cn(
|
||||||
"flex shrink-0 items-center whitespace-nowrap rounded-md px-3 text-sm text-muted-foreground",
|
"flex min-h-8 shrink-0 items-center whitespace-nowrap rounded-md px-3 text-sm outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
||||||
!section && "bg-muted text-foreground",
|
!section ? "bg-muted text-foreground" : "text-muted-foreground hover:bg-muted hover:text-foreground",
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
Overview
|
Overview
|
||||||
</Link>
|
</Link>
|
||||||
{sections.map((item) => (
|
{sections.map((item) => (
|
||||||
<Link
|
<Link
|
||||||
key={item.id}
|
key={item.id}
|
||||||
href={`/${guide.slug}/${item.slug}`}
|
href={`/${guide.slug}/${item.slug}`}
|
||||||
className={cn(
|
className={cn(
|
||||||
"flex min-h-8 shrink-0 items-center gap-2 whitespace-nowrap rounded-md px-3 text-sm text-muted-foreground",
|
"flex min-h-8 shrink-0 items-center gap-2 whitespace-nowrap rounded-md px-3 text-sm outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
||||||
section === item.slug && "bg-muted text-foreground",
|
section === item.slug ? "bg-muted text-foreground" : "text-muted-foreground hover:bg-muted hover:text-foreground",
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
{navigationIconPath(item.slug) ? <Image src={navigationIconPath(item.slug)!} alt="" width={20} height={20} className="size-5 object-contain" /> : null}
|
{navigationIconPath(item.slug) ? <Image src={navigationIconPath(item.slug)!} alt="" width={20} height={20} className="size-5 object-contain" /> : null}
|
||||||
{item.title}
|
{item.title}
|
||||||
|
|||||||
Reference in New Issue
Block a user