Spaces:
Running
Running
axeronis commited on
Commit ·
32d5a80
1
Parent(s): d33ea59
refactor(mobile): switch ChatWindow to flexbox, remove fixed positioning, fix overlaps
Browse files
frontend/components/ChatWindow.tsx
CHANGED
|
@@ -330,8 +330,8 @@ export function ChatWindow({
|
|
| 330 |
onTrainAI={handleTrainAI}
|
| 331 |
/>
|
| 332 |
|
| 333 |
-
{/* Messages Area -
|
| 334 |
-
<div className="flex-1 overflow-y-auto p-4 md:p-6
|
| 335 |
{isLoading ? (
|
| 336 |
<div className="flex items-center justify-center h-full">
|
| 337 |
<Loader2 className="w-8 h-8 animate-spin text-indigo-500" />
|
|
|
|
| 330 |
onTrainAI={handleTrainAI}
|
| 331 |
/>
|
| 332 |
|
| 333 |
+
{/* Messages Area - flex-1 handles height */}
|
| 334 |
+
<div className="flex-1 overflow-y-auto p-4 md:p-6 space-y-6 bg-[#0D0E18] scrollbar-thin scrollbar-thumb-white/10">
|
| 335 |
{isLoading ? (
|
| 336 |
<div className="flex items-center justify-center h-full">
|
| 337 |
<Loader2 className="w-8 h-8 animate-spin text-indigo-500" />
|
frontend/components/ChatWindow/ChatHeader.tsx
CHANGED
|
@@ -33,7 +33,7 @@ export function ChatHeader({
|
|
| 33 |
onTrainAI,
|
| 34 |
}: ChatHeaderProps) {
|
| 35 |
return (
|
| 36 |
-
<div className="bg-surface-elevated border-b border-white/10 px-4 md:px-6 py-3 flex items-center justify-between flex-shrink-0
|
| 37 |
<div className="flex items-center gap-4">
|
| 38 |
{/* Desktop Toggle */}
|
| 39 |
<button
|
|
|
|
| 33 |
onTrainAI,
|
| 34 |
}: ChatHeaderProps) {
|
| 35 |
return (
|
| 36 |
+
<div className="bg-surface-elevated border-b border-white/10 px-4 md:px-6 py-3 flex items-center justify-between flex-shrink-0 z-20">
|
| 37 |
<div className="flex items-center gap-4">
|
| 38 |
{/* Desktop Toggle */}
|
| 39 |
<button
|
frontend/components/ChatWindow/MessageInput.tsx
CHANGED
|
@@ -133,7 +133,7 @@ export function MessageInput({
|
|
| 133 |
|
| 134 |
return (
|
| 135 |
return (
|
| 136 |
-
<div className="p-3 md:p-6 bg-[#0D0E18] flex-shrink-0
|
| 137 |
<div className="max-w-4xl mx-auto relative">
|
| 138 |
{/* File Preview */}
|
| 139 |
{selectedFile && (
|
|
|
|
| 133 |
|
| 134 |
return (
|
| 135 |
return (
|
| 136 |
+
<div className="p-3 md:p-6 bg-[#0D0E18] flex-shrink-0 z-30">
|
| 137 |
<div className="max-w-4xl mx-auto relative">
|
| 138 |
{/* File Preview */}
|
| 139 |
{selectedFile && (
|