Spaces:
Running
Running
axeronis commited on
Commit ·
2e7cd01
1
Parent(s): 71a56fb
fix: adjust AI summary layering to place below global nav and hide back button on tablets
Browse files
frontend/app/chats/page.tsx
CHANGED
|
@@ -333,7 +333,7 @@ function ChatsContent() {
|
|
| 333 |
animate={{ opacity: 1 }}
|
| 334 |
exit={{ opacity: 0 }}
|
| 335 |
onClick={() => { setIsSummaryOpen(false); setSummaryLead(undefined); }}
|
| 336 |
-
className="fixed right-0 top-
|
| 337 |
/>
|
| 338 |
|
| 339 |
<motion.div
|
|
@@ -350,7 +350,7 @@ function ChatsContent() {
|
|
| 350 |
animate={{ x: 0, opacity: 1 }}
|
| 351 |
exit={{ x: '100%', opacity: 0 }}
|
| 352 |
transition={{ type: 'spring', damping: 30, stiffness: 250, mass: 0.8 }}
|
| 353 |
-
className="fixed right-0 top-
|
| 354 |
style={{ willChange: 'transform', transform: 'translateZ(0)' }}
|
| 355 |
>
|
| 356 |
|
|
|
|
| 333 |
animate={{ opacity: 1 }}
|
| 334 |
exit={{ opacity: 0 }}
|
| 335 |
onClick={() => { setIsSummaryOpen(false); setSummaryLead(undefined); }}
|
| 336 |
+
className="fixed right-0 top-32 md:top-[128px] bottom-24 md:bottom-20 bg-black/30 backdrop-blur-[6px] z-[15] left-0 md:left-[320px]"
|
| 337 |
/>
|
| 338 |
|
| 339 |
<motion.div
|
|
|
|
| 350 |
animate={{ x: 0, opacity: 1 }}
|
| 351 |
exit={{ x: '100%', opacity: 0 }}
|
| 352 |
transition={{ type: 'spring', damping: 30, stiffness: 250, mass: 0.8 }}
|
| 353 |
+
className="fixed right-0 top-32 md:top-[128px] bottom-24 md:bottom-20 w-[90%] sm:w-[380px] bg-[#050510]/95 backdrop-blur-xl border-l border-white/10 z-[16] flex flex-col shadow-[0_0_50px_rgba(0,0,0,0.5)] md:rounded-l-[32px] overflow-hidden"
|
| 354 |
style={{ willChange: 'transform', transform: 'translateZ(0)' }}
|
| 355 |
>
|
| 356 |
|
frontend/components/ChatWindow/ChatHeader.tsx
CHANGED
|
@@ -39,13 +39,15 @@ export function ChatHeader({
|
|
| 39 |
|
| 40 |
{/* Left: Lead Info */}
|
| 41 |
<div className="flex items-center gap-3 overflow-hidden">
|
| 42 |
-
{/* Back Button (Phone only - hidden on
|
| 43 |
-
<
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
|
|
|
|
|
|
| 49 |
|
| 50 |
{/* Tablet/Desktop Toggle */}
|
| 51 |
<button
|
|
|
|
| 39 |
|
| 40 |
{/* Left: Lead Info */}
|
| 41 |
<div className="flex items-center gap-3 overflow-hidden">
|
| 42 |
+
{/* Back Button (Phone only - strictly hidden on md+) */}
|
| 43 |
+
<div className="md:hidden">
|
| 44 |
+
<button
|
| 45 |
+
onClick={onBack}
|
| 46 |
+
className="p-2 -ml-2 text-slate-400 hover:text-white hover:bg-white/10 rounded-full transition-colors"
|
| 47 |
+
>
|
| 48 |
+
<ArrowLeft className="w-5 h-5" />
|
| 49 |
+
</button>
|
| 50 |
+
</div>
|
| 51 |
|
| 52 |
{/* Tablet/Desktop Toggle */}
|
| 53 |
<button
|