diff --git a/app/admin/[character]/[page]/page.tsx b/app/admin/[character]/[page]/page.tsx index cbbd8bf..6713c9f 100644 --- a/app/admin/[character]/[page]/page.tsx +++ b/app/admin/[character]/[page]/page.tsx @@ -63,36 +63,38 @@ export default async function StructuredEditorPage({
-
- -
- {guide.name} -
-
-

{guide.name}

-

- {sectionTitle} -

- -
- -
- ({ id, slug, title }))} - /> +
+
+ +
+ {guide.name} +
+
+

{guide.name}

+

+ {sectionTitle} +

+ +
+ +
+ ({ id, slug, title }))} + /> +
-
- -
- {guide.name} -
-
-

เลือกส่วนที่ต้องการแก้ไข

-

{guide.name}

- -
- - -
- +
+
+ +
+ {guide.name} +
+
+

เลือกส่วนที่ต้องการแก้ไข

+

{guide.name}

+ +
+ + +
+ +
{sections.map(({ slug, title, description }) => ( diff --git a/components/admin/editor-presence.tsx b/components/admin/editor-presence.tsx index 4a4ccae..76ba0b0 100644 --- a/components/admin/editor-presence.tsx +++ b/components/admin/editor-presence.tsx @@ -10,7 +10,7 @@ export function EditorPresence({ guideId, section }: { guideId: string; section: const presence = useAdminPresence(guideId, section); const editors = presence?.editorsByGuide[guideId] ?? []; return ( -
+
diff --git a/components/admin/guide-section-nav.tsx b/components/admin/guide-section-nav.tsx index 7013440..ee825d9 100644 --- a/components/admin/guide-section-nav.tsx +++ b/components/admin/guide-section-nav.tsx @@ -10,10 +10,10 @@ import { navigationIconPath } from "@/lib/navigation"; import { cn } from "@/lib/utils"; const sections = [ - { slug: "weapon", label: "อาวุธ" }, - { slug: "artifact", label: "อาร์ติแฟกต์และค่าสถานะ" }, - { slug: "constellations", label: "กลุ่มดาว" }, - { slug: "team", label: "คำนวณทีม" }, + { slug: "weapon", label: "Weapons" }, + { slug: "artifact", label: "Artifacts & Stats" }, + { slug: "constellations", label: "Constellations" }, + { slug: "team", label: "Team Calc" }, ] as const; export function GuideSectionNav({ @@ -36,7 +36,7 @@ export function GuideSectionNav({ }; return ( @@ -46,12 +46,12 @@ export function GuideSectionNav({ onClick={confirmNavigation} aria-current={current === "overview" ? "page" : undefined} className={cn( - "flex min-h-8 shrink-0 items-center gap-2 rounded-md px-3 text-sm outline-none focus-visible:ring-2 focus-visible:ring-ring", + "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", current === "overview" ? "bg-muted text-foreground" : "text-muted-foreground hover:bg-muted hover:text-foreground", )} > - ภาพรวม + Overview {sections.map((section) => { const iconPath = navigationIconPath(section.slug); @@ -63,7 +63,7 @@ export function GuideSectionNav({ onClick={confirmNavigation} aria-current={current === section.slug ? "page" : undefined} className={cn( - "flex min-h-8 shrink-0 items-center gap-2 rounded-md px-3 text-sm outline-none focus-visible:ring-2 focus-visible:ring-ring", + "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", current === section.slug ? "bg-muted text-foreground" : "text-muted-foreground hover:bg-muted hover:text-foreground", )} > @@ -80,7 +80,7 @@ export function GuideSectionNav({ onClick={confirmNavigation} aria-current={current === extra.slug ? "page" : undefined} className={cn( - "flex min-h-8 shrink-0 items-center gap-2 rounded-md px-3 text-sm outline-none focus-visible:ring-2 focus-visible:ring-ring", + "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", current === extra.slug ? "bg-muted text-foreground" : "text-muted-foreground hover:bg-muted hover:text-foreground", )} > diff --git a/components/public/guide-page-shell.tsx b/components/public/guide-page-shell.tsx index 1dc40af..5bf7b89 100644 --- a/components/public/guide-page-shell.tsx +++ b/components/public/guide-page-shell.tsx @@ -80,13 +80,13 @@ export function GuidePageShell({