Commit 74594a82 authored by StyleZhang's avatar StyleZhang

fix: some style

parent a060a3be
...@@ -23,7 +23,7 @@ export default function AppSelector() { ...@@ -23,7 +23,7 @@ export default function AppSelector() {
rounded-lg font-normal hover:bg-gray-50 cursor-pointer rounded-lg font-normal hover:bg-gray-50 cursor-pointer
` `
const router = useRouter() const router = useRouter()
const [settingVisible, setSettingVisible] = useState(false) const [settingVisible, setSettingVisible] = useState(true)
const [aboutVisible, setAboutVisible] = useState(false) const [aboutVisible, setAboutVisible] = useState(false)
const { locale } = useContext(I18n) const { locale } = useContext(I18n)
......
...@@ -30,7 +30,7 @@ type IAccountSettingProps = { ...@@ -30,7 +30,7 @@ type IAccountSettingProps = {
} }
export default function AccountSetting({ export default function AccountSetting({
onCancel, onCancel,
activeTab = 'account', activeTab = 'provider',
}: IAccountSettingProps) { }: IAccountSettingProps) {
const [activeMenu, setActiveMenu] = useState(activeTab) const [activeMenu, setActiveMenu] = useState(activeTab)
const { t } = useTranslation() const { t } = useTranslation()
......
...@@ -16,23 +16,65 @@ const ModelItem: FC<ModelItemProps> = ({ ...@@ -16,23 +16,65 @@ const ModelItem: FC<ModelItemProps> = ({
const { t } = useTranslation() const { t } = useTranslation()
return ( return (
<div className='flex justify-between items-center mb-2 px-4 h-14 bg-gray-50 rounded-xl'> <div className='mb-2 bg-gray-50 rounded-xl'>
{provider.icon} <div className='flex justify-between items-center px-4 h-14'>
<Button {provider.icon}
className='!px-3 !h-7 rounded-md bg-white !text-xs font-medium text-gray-700'
onClick={onOpenModal}
>
{t(`common.operation.${provider.type}`)}
</Button>
<div className='flex items-center'>
<Indicator className='mr-3' />
<Button <Button
className='mr-1 !px-3 !h-7 rounded-md bg-white !text-xs font-medium text-gray-700' className='!px-3 !h-7 rounded-md bg-white !text-xs font-medium text-gray-700'
onClick={onOpenModal} onClick={onOpenModal}
> >
{t('common.operation.edit')} {t(`common.operation.${provider.type}`)}
</Button> </Button>
<Operation /> <div className='flex items-center'>
<Indicator className='mr-3' />
<Button
className='mr-1 !px-3 !h-7 rounded-md bg-white !text-xs font-medium text-gray-700'
onClick={onOpenModal}
>
{t('common.operation.edit')}
</Button>
<Operation />
</div>
</div>
<div className='px-3 pb-3'>
<div className='flex mb-1 px-3 py-2 bg-white rounded-lg shadow-xs last:mb-0'>
<div className='grow'>
<div className='flex items-center mb-0.5 h-[18px] text-[13px] font-medium text-gray-700'>
al6z-infra/llama136-v2-chat
<div className='ml-2 px-1.5 rounded-md border border-[rgba(0,0,0,0.08)] text-xs text-gray-600'>Embeddings</div>
</div>
<div className='text-xs text-gray-500'>version: d7769041994d94e96ad9d568eac12laecf50684a060963625a41c4006126985</div>
</div>
<div className='flex items-center'>
<Indicator className='mr-3' />
<Button
className='mr-1 !px-3 !h-7 rounded-md bg-white !text-xs font-medium text-gray-700'
onClick={onOpenModal}
>
{t('common.operation.edit')}
</Button>
<Operation />
</div>
</div>
<div className='flex mb-1 px-3 py-2 bg-white rounded-lg shadow-xs last:mb-0'>
<div className='grow'>
<div className='flex items-center mb-0.5 h-[18px] text-[13px] font-medium text-gray-700'>
al6z-infra/llama136-v2-chat
<div className='ml-2 px-1.5 rounded-md border border-[rgba(0,0,0,0.08)] text-xs text-gray-600'>Embeddings</div>
</div>
<div className='text-xs text-gray-500'>version: d7769041994d94e96ad9d568eac12laecf50684a060963625a41c4006126985</div>
</div>
<div className='flex items-center'>
<Indicator className='mr-3' />
<Button
className='mr-1 !px-3 !h-7 rounded-md bg-white !text-xs font-medium text-gray-700'
onClick={onOpenModal}
>
{t('common.operation.edit')}
</Button>
<Operation />
</div>
</div>
</div> </div>
</div> </div>
) )
......
...@@ -224,12 +224,6 @@ const translation = { ...@@ -224,12 +224,6 @@ const translation = {
models: 'Models', models: 'Models',
showMoreModelProvider: 'Show more model provider', showMoreModelProvider: 'Show more model provider',
card: { card: {
openai: {
desc: 'Models provided by OpenAI, such as GPT-3.5-Turbo and GPT-4.',
},
anthropic: {
desc: 'Anthropic’s powerful models, such as Claude 2 and Claude Instant.',
},
quota: 'QUOTA', quota: 'QUOTA',
onTrial: 'On Trial', onTrial: 'On Trial',
paid: 'Paid', paid: 'Paid',
......
...@@ -220,12 +220,6 @@ const translation = { ...@@ -220,12 +220,6 @@ const translation = {
models: 'Models', models: 'Models',
showMoreModelProvider: 'Show more model provider', showMoreModelProvider: 'Show more model provider',
card: { card: {
openai: {
desc: 'Models provided by OpenAI, such as GPT-3.5-Turbo and GPT-4.',
},
anthropic: {
desc: 'Anthropic’s powerful models, such as Claude 2 and Claude Instant.',
},
quota: 'QUOTA', quota: 'QUOTA',
onTrial: 'On Trial', onTrial: 'On Trial',
paid: 'Paid', paid: 'Paid',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment