ui: changing kai header buttons

This commit is contained in:
nick-delirium 2025-06-02 16:58:03 +02:00
parent 1976320fbe
commit d687bb7db4
No known key found for this signature in database
GPG key ID: 93ABD695DF5FDBA0

View file

@ -15,7 +15,6 @@ function ChatHeader({
onCreate: () => void; onCreate: () => void;
}) { }) {
const { t } = useTranslation(); const { t } = useTranslation();
//absolute top-0 left-0 right-0 z-10
return ( return (
<div className="p-4 pb-0 w-full"> <div className="p-4 pb-0 w-full">
<div <div
@ -29,8 +28,8 @@ function ChatHeader({
} }
onClick={goBack} onClick={goBack}
> >
<ArrowLeft size={14} /> <SquarePen size={14} />
<div>{t('Back')}</div> <div>{t('New Chat')}</div>
</div> </div>
) : ( ) : (
<div className="flex items-center gap-2"> <div className="flex items-center gap-2">
@ -46,16 +45,7 @@ function ChatHeader({
</div> </div>
) : null} ) : null}
</div> </div>
<div className={'flex-1 justify-end flex items-center gap-4'}> <div className={'flex-1 justify-end flex items-center'}>
{goBack ? (
<div
onClick={() => onCreate()}
className="font-semibold w-fit cursor-pointer hover:text-main flex items-center gap-2"
>
<SquarePen size={14} />
<div>{t('New Chat')}</div>
</div>
) : null}
<div <div
className="font-semibold w-fit cursor-pointer hover:text-main flex items-center gap-2" className="font-semibold w-fit cursor-pointer hover:text-main flex items-center gap-2"
onClick={openChats} onClick={openChats}