fix: improve the responsive design when toc title exists (#1491)

This commit is contained in:
李悠然
2026-03-14 21:56:37 +08:00
committed by GitHub
parent 1582d33705
commit 3c902b4599
2 changed files with 5 additions and 5 deletions
@@ -606,10 +606,10 @@ export function SessionManagerPage({ appId }: { appId: string }) {
{/* 消息列表区域 */}
<CardContent className="flex-1 overflow-hidden p-0">
<div className="flex h-full">
<div className="flex h-full min-w-0">
{/* 消息列表 */}
<ScrollArea className="flex-1">
<div className="p-4">
<ScrollArea className="flex-1 min-w-0">
<div className="p-4 min-w-0">
<div className="flex items-center gap-2 mb-3">
<MessageSquare className="size-4 text-muted-foreground" />
<span className="text-sm font-medium">
@@ -31,7 +31,7 @@ export function SessionMessageItem({
<div
ref={setRef}
className={cn(
"rounded-lg border px-3 py-2.5 relative group transition-all",
"rounded-lg border px-3 py-2.5 relative group transition-all min-w-0",
message.role.toLowerCase() === "user"
? "bg-primary/5 border-primary/20 ml-8"
: message.role.toLowerCase() === "assistant"
@@ -67,7 +67,7 @@ export function SessionMessageItem({
</span>
)}
</div>
<div className="whitespace-pre-wrap text-sm leading-relaxed">
<div className="whitespace-pre-wrap break-words [overflow-wrap:anywhere] text-sm leading-relaxed min-w-0">
{message.content}
</div>
</div>