@@ -91,20 +91,25 @@ export function ThreadPopup({ className }: { className?: string }) {
9191 const threadTitleSubHeading = threadTitleChunks ?. slice ( 32 ) . join ( ' ' )
9292
9393 return (
94- < div
95- className = { cn (
96- 'size-full dark:bg-[#27272A80] lg:max-w-[calc(100%-250px)] xl:max-w-[calc(100%-300px)] flex justify-center items-center fixed top-16 h-[calc(100vh-4rem)] bg-[#F4F4F580] backdrop-blur-sm ease-in-out duration-500 z-[9] transition-all' ,
97- isOpenPopup ? 'animate-fade-in' : 'hidden animate-fade-out'
98- ) }
99- >
10094 < div
10195 className = { cn (
102- className ,
103- `flex flex-col z-10 rounded-lg duration-500 ease-in-out fixed h-full max-h-[90%]
104- max-w-[1032px] w-[95%] dark:border-mirage border-iron border
105- transition-opacity ${ isOpenPopup ? 'animate-fade-in' : 'animate-fade-out' } `
96+ 'size-full bg-background/80 dark:bg-background/80' ,
97+ 'lg:max-w-[calc(100%-250px)] xl:max-w-[calc(100%-300px)]' ,
98+ 'flex justify-center items-center fixed top-16' ,
99+ 'h-[calc(100vh-4rem)] backdrop-blur-sm ease-in-out duration-500 z-[9]' ,
100+ 'transition-all' ,
101+ isOpenPopup ? 'animate-fade-in' : 'animate-fade-out' ,
102+ className
106103 ) }
107104 >
105+ < div
106+ className = { cn (
107+ 'flex flex-col z-10 rounded-lg duration-500 ease-in-out fixed' ,
108+ 'h-full max-h-[90%] max-w-[1032px] w-[95%]' ,
109+ 'dark:border-mirage border-iron border bg-background dark:bg-background' ,
110+ 'transition-opacity'
111+ ) }
112+ >
108113 < div className = "relative rounded-t-[8px] px-[32px] py-[20px] dark:bg-[#1E293B] bg-[#E4E4E7]" >
109114 < div className = "flex items-center justify-between gap-6" >
110115 < div className = "items-center block overflow-y-auto whitespace-pre-line max-h-28 scrollbar small-thumb" >
@@ -132,10 +137,14 @@ export function ThreadPopup({ className }: { className?: string }) {
132137 </ div >
133138
134139 < div
135- className = "flex flex-col dark:bg-[#18181B] bg-[white] grow rounded-b-[8px] scrollbar h-full
136- pb-[180px] md:pb-[180px] max-h-[calc(100vh-280px)] md:max-h-[calc(100vh-220px)]"
137- ref = { popupContentRef as React . Ref < HTMLDivElement > }
138- >
140+ className = { cn (
141+ "flex flex-col dark:bg-[#18181B] bg-white grow rounded-b-[8px] scrollbar h-full" ,
142+ "pb-[120px] md:pb-[180px]" , //? Reduced padding on mobile
143+ "max-h-[calc(100vh-240px)] md:max-h-[calc(100vh-220px)]" , //? Adjusted height for mobile
144+ className
145+ ) }
146+ ref = { popupContentRef as React . Ref < HTMLDivElement > }
147+ >
139148 < ChatList
140149 className = "max-w-full !px-[32px] !mx-0"
141150 isThread = { false }
0 commit comments