mirror of
https://github.com/NovaOSS/nova-betterchat.git
synced 2024-11-25 21:13:59 +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 (
|
return (
|
||||||
<a
|
<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
|
generating
|
||||||
? 'cursor-not-allowed opacity-40'
|
? 'cursor-not-allowed opacity-40'
|
||||||
: 'cursor-pointer opacity-100'
|
: 'cursor-pointer opacity-100'
|
||||||
} ${
|
} ${
|
||||||
folder
|
folder ? 'justify-start' : 'py-2 px-2 gap-3 mb-2 border border-white/20'
|
||||||
? 'justify-start'
|
|
||||||
: 'py-2 px-2 gap-3 md:mb-2 md:border md:border-white/20'
|
|
||||||
}`}
|
}`}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
if (!generating) addChat(folder);
|
if (!generating) addChat(folder);
|
||||||
|
@ -34,9 +32,7 @@ const NewChat = ({ folder }: { folder?: string }) => {
|
||||||
) : (
|
) : (
|
||||||
<>
|
<>
|
||||||
<PlusIcon />
|
<PlusIcon />
|
||||||
<span className='hidden md:inline-flex text-white text-sm'>
|
<span className='inline-flex text-white text-sm'>{t('newChat')}</span>
|
||||||
{t('newChat')}
|
|
||||||
</span>
|
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
</a>
|
</a>
|
||||||
|
|
Loading…
Reference in a new issue