From b1168dcc38b848e2d1cf88f25fed2e3cea901db0 Mon Sep 17 00:00:00 2001 From: Z8MB1E Date: Tue, 6 Oct 2026 17:21:26 -0400 Subject: [PATCH] fix(personnel): mobile layout for conversations - Converse button no longer floats over the hero text on phones: it sits in the card's content flow below the status chips and only anchors to the hero's right edge from md up - conversation dialog keeps a side margin on small screens instead of rendering edge-to-edge - dialog titles truncate with min-w-0 so long NPC names and attachment urls cannot push the close buttons out --- .../frontend/personnel/NpcConversation.tsx | 6 +++--- src/components/frontend/personnel/NpcProfile.tsx | 13 +++++++------ src/lib/npc-dialogue/DialogueText.tsx | 2 +- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/src/components/frontend/personnel/NpcConversation.tsx b/src/components/frontend/personnel/NpcConversation.tsx index 366807f1..831d64da 100644 --- a/src/components/frontend/personnel/NpcConversation.tsx +++ b/src/components/frontend/personnel/NpcConversation.tsx @@ -356,17 +356,17 @@ export function NpcConversation({ npc, dialogue }: NpcConversationProps) { !next && close()}>
- + Conversation // {npc.name} diff --git a/src/components/frontend/personnel/NpcProfile.tsx b/src/components/frontend/personnel/NpcProfile.tsx index 83a8cb01..6a157b06 100644 --- a/src/components/frontend/personnel/NpcProfile.tsx +++ b/src/components/frontend/personnel/NpcProfile.tsx @@ -154,12 +154,6 @@ export function NpcProfile({ npc, listings, employmentSlot, conversationSlot }: - {conversationSlot ? ( -
- {conversationSlot} -
- ) : null} -

+ {conversationSlot ? ( + // Mobile: a normal button in the card's flow so it never covers + // the bio text. md+: floated to the hero's right edge as before. +
+ {conversationSlot} +
+ ) : null}

diff --git a/src/lib/npc-dialogue/DialogueText.tsx b/src/lib/npc-dialogue/DialogueText.tsx index 8953f91f..c4669f5d 100644 --- a/src/lib/npc-dialogue/DialogueText.tsx +++ b/src/lib/npc-dialogue/DialogueText.tsx @@ -261,7 +261,7 @@ function DialogueLink({ href, children }: { href: string; children: ReactNode }) className="flex h-[85vh] w-[92vw] max-w-6xl flex-col gap-0 overflow-hidden rounded-none border border-white/20 bg-zinc-950 p-0 text-white sm:max-w-6xl" >
- + Attachment // {href.slice(0, 96)}