unhide mobile side bar new chat

This commit is contained in:
Jing Hua 2023-04-08 22:08:34 +08:00
parent f1580010df
commit 90a4e3669b

View file

@ -13,14 +13,12 @@ const NewChat = ({ folder }: { folder?: string }) => {
return (
<a
className={`flex flex-1 items-center max-md:hidden rounded-md hover:bg-gray-500/10 transition-all duration-200 text-white text-sm flex-shrink-0 ${
className={`flex flex-1 items-center rounded-md hover:bg-gray-500/10 transition-all duration-200 text-white text-sm flex-shrink-0 ${
generating
? 'cursor-not-allowed opacity-40'
: 'cursor-pointer opacity-100'
} ${
folder
? 'justify-start'
: 'py-2 px-2 gap-3 md:mb-2 md:border md:border-white/20'
folder ? 'justify-start' : 'py-2 px-2 gap-3 mb-2 border border-white/20'
}`}
onClick={() => {
if (!generating) addChat(folder);
@ -34,9 +32,7 @@ const NewChat = ({ folder }: { folder?: string }) => {
) : (
<>
<PlusIcon />
<span className='hidden md:inline-flex text-white text-sm'>
{t('newChat')}
</span>
<span className='inline-flex text-white text-sm'>{t('newChat')}</span>
</>
)}
</a>