chore: update chatscreen padding

This commit is contained in:
Faisal Amir 2025-09-22 15:55:07 +07:00
parent f639ec70d4
commit e3c29277f3

View File

@ -57,35 +57,45 @@ function Index() {
} }
return ( return (
<div className="flex h-full flex-col justify-center py-5"> <div className="flex h-full flex-col justify-center pb-[calc(env(safe-area-inset-bottom)+env(safe-area-inset-top))]">
<HeaderPage> <HeaderPage>
{PlatformFeatures[PlatformFeature.ASSISTANTS] && <DropdownAssistant />} {PlatformFeatures[PlatformFeature.ASSISTANTS] && <DropdownAssistant />}
</HeaderPage> </HeaderPage>
<div className={cn( <div
"h-full overflow-y-auto flex flex-col gap-2 justify-center px-3 sm:px-4 md:px-8 py-4 md:py-0", className={cn(
)}> 'h-full overflow-y-auto flex flex-col gap-2 justify-center px-3 sm:px-4 md:px-8 py-4 md:py-0'
<div className={cn( )}
"mx-auto", >
// Full width on mobile, constrained on desktop <div
isMobile ? "w-full max-w-full" : "w-full md:w-4/6" className={cn(
)}> 'mx-auto',
<div className={cn( // Full width on mobile, constrained on desktop
"text-center", isMobile ? 'w-full max-w-full' : 'w-full md:w-4/6'
// Adjust spacing for mobile )}
isMobile ? "mb-6" : "mb-8" >
)}> <div
<h1 className={cn( className={cn(
"font-editorialnew text-main-view-fg", 'text-center',
// Responsive title size // Adjust spacing for mobile
isMobile ? "text-2xl sm:text-3xl" : "text-4xl" isMobile ? 'mb-6' : 'mb-8'
)}> )}
>
<h1
className={cn(
'font-editorialnew text-main-view-fg',
// Responsive title size
isMobile ? 'text-2xl sm:text-3xl' : 'text-4xl'
)}
>
{t('chat:welcome')} {t('chat:welcome')}
</h1> </h1>
<p className={cn( <p
"text-main-view-fg/70 mt-2", className={cn(
// Responsive description size 'text-main-view-fg/70 mt-2',
isMobile ? "text-base" : "text-lg" // Responsive description size
)}> isMobile ? 'text-base' : 'text-lg'
)}
>
{t('chat:description')} {t('chat:description')}
</p> </p>
</div> </div>