mirror of
https://github.com/NovaOSS/nova-betterchat.git
synced 2024-11-25 17:24:00 +01:00
unhide mobile side bar new chat
This commit is contained in:
parent
f1580010df
commit
90a4e3669b
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue