feat: update UI components and settings structure, remove unused icons
This commit is contained in:
@@ -120,7 +120,7 @@ function ChatHistoryPanel({
|
||||
|
||||
{!isCompact ? (
|
||||
<div className={cx('flex min-w-0 items-center gap-3', isCompact && 'flex-col gap-2')}>
|
||||
<div className="flex h-12 w-12 flex-none items-center justify-center overflow-hidden rounded-[16px] border border-white bg-white shadow-[0_6px_16px_rgba(15,23,42,0.08)]">
|
||||
<div className="flex h-12 w-12 flex-none items-center justify-center overflow-hidden rounded-2xl border border-white bg-white shadow-[0_6px_16px_rgba(15,23,42,0.08)]">
|
||||
<img className="h-full w-full object-cover" src={blueLogo} alt="YINIAN" />
|
||||
</div>
|
||||
<div className="truncate text-[20px] font-semibold whitespace-nowrap tracking-[0.06em] text-[#111827] dark:text-gray-50">
|
||||
@@ -132,7 +132,7 @@ function ChatHistoryPanel({
|
||||
|
||||
<button
|
||||
type="button"
|
||||
className="inline-flex h-12 w-12 items-center justify-center text-[#64748b] transition-colors border border-white hover:text-[#111827] rounded-[14px] dark:border-[#2a2a2d] dark:text-gray-300 dark:hover:border-[#3a3a3f] dark:hover:text-gray-100"
|
||||
className={cx('inline-flex h-12 w-12 items-center justify-center text-[#64748b] transition-colors border hover:text-[#111827] rounded-lg dark:border-[#2a2a2d] dark:text-gray-300 dark:hover:border-[#3a3a3f] dark:hover:text-gray-100', isCompact ? 'border-[#e3eaf3]' : 'border-transparent')}
|
||||
title={isCompact ? '展开侧栏' : '收起侧栏'}
|
||||
onClick={() => {
|
||||
setMenuState(null);
|
||||
@@ -153,7 +153,7 @@ function ChatHistoryPanel({
|
||||
onClick={onNewChat}
|
||||
>
|
||||
<Plus className="h-5 w-5 flex-none" />
|
||||
{!isCompact ? <span>新对话</span> : null}
|
||||
{!isCompact ? <span className='whitespace-nowrap'>新对话</span> : null}
|
||||
</button>
|
||||
|
||||
<div className="min-h-0 flex-1 overflow-y-auto pt-4">
|
||||
|
||||
Reference in New Issue
Block a user