Spaces:
Running

axeronis commited on
Commit
ab7bc04
·
1 Parent(s): ad6161c

fix: improve ClientCard drawer positioning - correct mobile header/nav offsets

Browse files
Files changed (1) hide show
  1. frontend/app/chats/page.tsx +3 -3
frontend/app/chats/page.tsx CHANGED
@@ -327,13 +327,13 @@ function ChatsContent() {
327
  <AnimatePresence>
328
  {isSummaryOpen && (summaryLead || selectedLead) && (
329
  <div className="lg:hidden">
330
- {/* Backdrop - Starts from start of chat header, ends before input block */}
331
  <motion.div
332
  initial={{ opacity: 0 }}
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,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-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
 
 
327
  <AnimatePresence>
328
  {isSummaryOpen && (summaryLead || selectedLead) && (
329
  <div className="lg:hidden">
330
+ {/* Backdrop - Starts from mobile header (64px), ends before bottom nav (56px) */}
331
  <motion.div
332
  initial={{ opacity: 0 }}
333
  animate={{ opacity: 1 }}
334
  exit={{ opacity: 0 }}
335
  onClick={() => { setIsSummaryOpen(false); setSummaryLead(undefined); }}
336
+ className="fixed right-0 top-16 md:top-0 bottom-14 md:bottom-0 bg-black/40 backdrop-blur-[4px] 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-16 md:top-0 bottom-14 md:bottom-0 w-[88%] max-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)] rounded-l-2xl md:rounded-l-[32px] overflow-hidden"
354
  style={{ willChange: 'transform', transform: 'translateZ(0)' }}
355
  >
356