diff --git a/ui/litellm-dashboard/src/components/chat/ChatPage.tsx b/ui/litellm-dashboard/src/components/chat/ChatPage.tsx index b547f749175..0b5d3281070 100644 --- a/ui/litellm-dashboard/src/components/chat/ChatPage.tsx +++ b/ui/litellm-dashboard/src/components/chat/ChatPage.tsx @@ -45,6 +45,7 @@ interface ChatPageProps { const SUGGESTIONS = ["Write", "Learn", "Code", "Brainstorm"]; const MAX_COMPARISON_MODELS = 3; const LOCALSTORAGE_MODEL_KEY = "litellm_chat_selected_models"; +const SINGLE_CHAT_CONTENT_MAX_WIDTH = 1120; function getGreeting(): string { const h = new Date().getHours(); @@ -815,6 +816,15 @@ const ChatPage: React.FC = ({ accessToken, userRole, userId, user fontFamily: "-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif", overflow: "hidden", }}> + {/* ===== LEFT SIDEBAR ===== */}
= ({ accessToken, userRole, userId, user /* ---- Active conversation (single-model or comparison) ---- */
= 3 ? 1200 : 960) : 760, - margin: "0 auto", width: "100%", padding: "0 24px", position: "relative", + maxWidth: isComparisonMode ? (selectedModels.length >= 3 ? 1320 : 1180) : "100%", + margin: 0, + width: "100%", + padding: isComparisonMode ? "0 20px" : "0 28px", + position: "relative", }}> -
+
{isComparisonMode ? ( /* Comparison: multi-turn exchanges, each with user bubble + side-by-side response cards */
@@ -1187,11 +1204,13 @@ const ChatPage: React.FC = ({ accessToken, userRole, userId, user })}
) : ( - +
+ +
)}
{showScrollButton && ( @@ -1235,7 +1254,7 @@ const ChatPage: React.FC = ({ accessToken, userRole, userId, user )} {/* Input bar (in conversation) */} -
+
{inputBar(true)}
@@ -1246,4 +1265,4 @@ const ChatPage: React.FC = ({ accessToken, userRole, userId, user ); }; -export default ChatPage; +export default ChatPage; \ No newline at end of file