Simplify chat UI to focus on main input with pastel gradient background

- Hide sidebar (conversations, model picker, MCP servers) while preserving components
- Hide navbar/title bar while preserving component
- Remove title text and description above input field
- Add pastel gradient background (pink-purple-indigo)
- Expand conversation thread to full width
- Create minimal, focused interface with only white input field visible
This commit is contained in:
Glen Maddern 2025-06-20 17:19:54 +10:00
commit 15bb63670a
2 changed files with 43 additions and 33 deletions

View file

@ -102,8 +102,11 @@ const ChatApp: React.FC<ChatAppProps> = () => {
};
return (
<div className="flex h-dvh w-screen overflow-clip bg-white">
<div className="flex h-dvh w-screen overflow-clip bg-gradient-to-br from-pink-100 via-purple-50 to-indigo-100">
<div className="flex flex-row flex-grow flex-1 overflow-hidden relative">
{/* Sidebar and Navbar components hidden but kept in codebase */}
{false && (
<>
<ChatSidebar
sidebarVisible={sidebarVisible}
setSidebarVisible={setSidebarVisible}
@ -118,11 +121,13 @@ const ChatApp: React.FC<ChatAppProps> = () => {
apiKeyUpdateTrigger={apiKeyUpdateTrigger}
onMcpToolsUpdate={setMcpTools}
/>
<div className="flex flex-col flex-grow h-full w-[calc(100%-16rem)] lg:w-[calc(100%-32rem)]">
<ChatNavbar
sidebarVisible={sidebarVisible}
setSidebarVisible={setSidebarVisible}
/>
</>
)}
<div className="flex flex-col flex-grow h-full w-full">
<ConversationThread
conversations={conversations}
conversationId={conversationId}

View file

@ -160,7 +160,7 @@ const ConversationThread: React.FC<ConversationThreadProps> = ({
console.log({ currentConversation })
return (
<div className={`flex flex-col h-[calc(100%-3rem)] w-full ${currentConversation.messages.length === 0 ? 'justify-center' : ''}`}>
<div className={`flex flex-col h-full w-full ${currentConversation.messages.length === 0 ? 'justify-center' : ''}`}>
<div
ref={messagesContainerRef}
className={`
@ -170,6 +170,9 @@ const ConversationThread: React.FC<ConversationThreadProps> = ({
<div className="max-w-2xl mx-auto w-full px-4">
{currentConversation.messages.length === 0 ? (
<div className="text-center">
{/* Title and description text hidden but kept in codebase */}
{false && (
<>
<h1 className="text-4xl font-semibold text-zinc-800">What do you want to know?</h1>
<div className="mt-4">
<h2 className="mt-2 text-md opacity-70">
@ -183,6 +186,8 @@ const ConversationThread: React.FC<ConversationThreadProps> = ({
</div>
</h2>
</div>
</>
)}
</div>
) : (
<div className="py-4 px-4 space-y-4">