mirror of
https://github.com/NovaOSS/nova-betterchat.git
synced 2024-11-25 22:23:59 +01:00
style: compact side menu
This commit is contained in:
parent
a57dfce108
commit
6c12e67393
|
@ -10,7 +10,7 @@ const AboutMenu = () => {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<a
|
<a
|
||||||
className='flex py-3 px-3 items-center gap-3 rounded-md hover:bg-gray-500/10 transition-colors duration-200 text-white cursor-pointer text-sm'
|
className='flex py-2 px-2 items-center gap-3 rounded-md hover:bg-gray-500/10 transition-colors duration-200 text-white cursor-pointer text-sm'
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setIsModalOpen(true);
|
setIsModalOpen(true);
|
||||||
}}
|
}}
|
||||||
|
|
|
@ -22,7 +22,7 @@ const ImportExportChat = () => {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<a
|
<a
|
||||||
className='flex py-3 px-3 items-center gap-3 rounded-md hover:bg-gray-500/10 transition-colors duration-200 text-white cursor-pointer text-sm'
|
className='flex py-2 px-2 items-center gap-3 rounded-md hover:bg-gray-500/10 transition-colors duration-200 text-white cursor-pointer text-sm'
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setIsModalOpen(true);
|
setIsModalOpen(true);
|
||||||
}}
|
}}
|
||||||
|
|
|
@ -157,7 +157,7 @@ const ChatFolder = ({
|
||||||
style={{ background: color || '' }}
|
style={{ background: color || '' }}
|
||||||
className={`${
|
className={`${
|
||||||
color ? '' : 'hover:bg-gray-850'
|
color ? '' : 'hover:bg-gray-850'
|
||||||
} transition-colors flex py-3 pl-3 pr-1 items-center gap-3 relative rounded-md break-all cursor-pointer parent-sibling`}
|
} transition-colors flex py-2 pl-2 pr-1 items-center gap-3 relative rounded-md break-all cursor-pointer parent-sibling`}
|
||||||
onClick={toggleExpanded}
|
onClick={toggleExpanded}
|
||||||
ref={folderRef}
|
ref={folderRef}
|
||||||
onMouseEnter={() => {
|
onMouseEnter={() => {
|
||||||
|
|
|
@ -11,9 +11,9 @@ import useStore from '@store/store';
|
||||||
|
|
||||||
const ChatHistoryClass = {
|
const ChatHistoryClass = {
|
||||||
normal:
|
normal:
|
||||||
'flex py-3 px-3 items-center gap-3 relative rounded-md bg-gray-900 hover:bg-gray-850 break-all hover:pr-4 group transition-opacity',
|
'flex py-2 px-2 items-center gap-3 relative rounded-md bg-gray-900 hover:bg-gray-850 break-all hover:pr-4 group transition-opacity',
|
||||||
active:
|
active:
|
||||||
'flex py-3 px-3 items-center gap-3 relative rounded-md break-all pr-14 bg-gray-800 hover:bg-gray-800 group transition-opacity',
|
'flex py-2 px-2 items-center gap-3 relative rounded-md break-all pr-14 bg-gray-800 hover:bg-gray-800 group transition-opacity',
|
||||||
normalGradient:
|
normalGradient:
|
||||||
'absolute inset-y-0 right-0 w-8 z-10 bg-gradient-to-l from-gray-900 group-hover:from-gray-850',
|
'absolute inset-y-0 right-0 w-8 z-10 bg-gradient-to-l from-gray-900 group-hover:from-gray-850',
|
||||||
activeGradient:
|
activeGradient:
|
||||||
|
|
|
@ -11,7 +11,7 @@ const Config = () => {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<a
|
<a
|
||||||
className='flex py-3 px-3 items-center gap-3 rounded-md hover:bg-gray-500/10 transition-colors duration-200 text-white cursor-pointer text-sm'
|
className='flex py-2 px-2 items-center gap-3 rounded-md hover:bg-gray-500/10 transition-colors duration-200 text-white cursor-pointer text-sm'
|
||||||
id='api-menu'
|
id='api-menu'
|
||||||
onClick={() => setIsModalOpen(true)}
|
onClick={() => setIsModalOpen(true)}
|
||||||
>
|
>
|
||||||
|
|
|
@ -22,7 +22,7 @@ const ClearConversation = () => {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<a
|
<a
|
||||||
className='flex py-3 px-3 items-center gap-3 rounded-md hover:bg-gray-500/10 transition-colors duration-200 text-white cursor-pointer text-sm'
|
className='flex py-2 px-2 items-center gap-3 rounded-md hover:bg-gray-500/10 transition-colors duration-200 text-white cursor-pointer text-sm'
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setIsModalOpen(true);
|
setIsModalOpen(true);
|
||||||
}}
|
}}
|
||||||
|
|
|
@ -7,7 +7,7 @@ const Me = () => {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
return (
|
return (
|
||||||
<a
|
<a
|
||||||
className='flex py-3 px-3 items-center gap-3 rounded-md hover:bg-gray-500/10 transition-colors duration-200 text-white cursor-pointer text-sm'
|
className='flex py-2 px-2 items-center gap-3 rounded-md hover:bg-gray-500/10 transition-colors duration-200 text-white cursor-pointer text-sm'
|
||||||
href='https://github.com/ztjhz/BetterChatGPT'
|
href='https://github.com/ztjhz/BetterChatGPT'
|
||||||
target='_blank'
|
target='_blank'
|
||||||
>
|
>
|
||||||
|
|
|
@ -20,7 +20,7 @@ const NewChat = ({ folder }: { folder?: string }) => {
|
||||||
} ${
|
} ${
|
||||||
folder
|
folder
|
||||||
? 'justify-start'
|
? 'justify-start'
|
||||||
: 'py-3 px-3 gap-3 md:mb-2 md:border md:border-white/20'
|
: '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);
|
||||||
|
@ -28,7 +28,7 @@ const NewChat = ({ folder }: { folder?: string }) => {
|
||||||
title={folder ? String(t('newChat')) : ''}
|
title={folder ? String(t('newChat')) : ''}
|
||||||
>
|
>
|
||||||
{folder ? (
|
{folder ? (
|
||||||
<div className='max-h-0 parent-sibling-hover:max-h-10 hover:max-h-10 parent-sibling-hover:py-3 hover:py-3 px-3 overflow-hidden transition-all duration-200 delay-500 text-sm flex gap-3 items-center text-gray-100'>
|
<div className='max-h-0 parent-sibling-hover:max-h-10 hover:max-h-10 parent-sibling-hover:py-2 hover:py-2 px-2 overflow-hidden transition-all duration-200 delay-500 text-sm flex gap-3 items-center text-gray-100'>
|
||||||
<PlusIcon /> {t('newChat')}
|
<PlusIcon /> {t('newChat')}
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
|
|
|
@ -23,7 +23,7 @@ const SettingsMenu = () => {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<a
|
<a
|
||||||
className='flex py-3 px-3 items-center gap-3 rounded-md hover:bg-gray-500/10 transition-colors duration-200 text-white cursor-pointer text-sm'
|
className='flex py-2 px-2 items-center gap-3 rounded-md hover:bg-gray-500/10 transition-colors duration-200 text-white cursor-pointer text-sm'
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setIsModalOpen(true);
|
setIsModalOpen(true);
|
||||||
}}
|
}}
|
||||||
|
|
Loading…
Reference in a new issue