setValue(e.currentTarget.value)}
/>
{ setIsOpen(!isOpen()) }}>
diff --git a/src/components/ui/SettingsInput.tsx b/src/components/ui/SettingsInput.tsx
index 6bc02ccc..508f0ed6 100644
--- a/src/components/ui/SettingsInput.tsx
+++ b/src/components/ui/SettingsInput.tsx
@@ -17,7 +17,7 @@ export default ({ settings, editing, value, setValue }: Props) => {
setValue(e.currentTarget.value)}
/>
)}
diff --git a/src/components/ui/Sidebar.tsx b/src/components/ui/Sidebar.tsx
index 677a729b..51776a8b 100644
--- a/src/components/ui/Sidebar.tsx
+++ b/src/components/ui/Sidebar.tsx
@@ -8,7 +8,7 @@ interface Props {
export default (props: Props) => {
const containerBaseClass = {
- left: 'w-[300px] h-100dvh border-r',
+ left: 'w-[260px] h-100dvh border-r',
right: 'w-[300px] h-100dvh border-l',
}[props.direction]
diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro
index d0e14010..f4832157 100644
--- a/src/layouts/Layout.astro
+++ b/src/layouts/Layout.astro
@@ -11,10 +11,10 @@ const { title } = Astro.props;
-
+
-
-
+
+
{title}
diff --git a/src/locale/lang/en.ts b/src/locale/lang/en.ts
index 24229c7f..2cd7ee7b 100644
--- a/src/locale/lang/en.ts
+++ b/src/locale/lang/en.ts
@@ -20,9 +20,13 @@ export const en = {
},
conversations: {
title: 'Conversations',
- add: 'New Conversation',
+ add: 'New',
recent: 'Recents',
noRecent: 'No recents',
+ untitled: 'Untitled',
+ },
+ send: {
+ placeholder: 'Enter Something...',
},
},
} as language
diff --git a/src/locale/lang/zh-cn.ts b/src/locale/lang/zh-cn.ts
index decee665..66c3cd64 100644
--- a/src/locale/lang/zh-cn.ts
+++ b/src/locale/lang/zh-cn.ts
@@ -20,9 +20,13 @@ export const zhCN = {
},
conversations: {
title: '对话列表',
- add: '创建新对话',
+ add: '新对话',
recent: '最近对话',
noRecent: '暂无最近对话',
+ untitled: '未命名对话',
+ },
+ send: {
+ placeholder: '输入内容...',
},
},
} as language
diff --git a/unocss.config.ts b/unocss.config.ts
index 7fe52918..db08cef1 100644
--- a/unocss.config.ts
+++ b/unocss.config.ts
@@ -43,22 +43,21 @@ export default defineConfig({
],
transformers: [transformerVariantGroup(), transformerDirectives()],
shortcuts: [{
- 'bg-base': 'bg-light-100 dark:bg-[#1c1c1c]',
- 'bg-base-100': 'bg-light-200 dark:bg-[#222222]',
- 'bg-blur': 'bg-light-200/85 dark:bg-[#222222]/85 backdrop-blur-xl backdrop-saturate-150',
- 'bg-sidebar': 'bg-light-400 dark:bg-[#191919]',
- 'bg-modal': 'bg-base dark:bg-base-100',
+ 'bg-base': 'bg-white dark:bg-[#101010]',
+ 'bg-base-100': 'bg-light-200/50 dark:bg-[#181818]',
+ 'bg-base-200': 'bg-light-400 dark:bg-[#202020]',
+ 'bg-blur': 'bg-light-200/85 dark:bg-[#101010]/85 backdrop-blur-xl backdrop-saturate-150',
+ 'bg-sidebar': 'bg-white dark:bg-[#101010]',
+ 'bg-modal': 'bg-white dark:bg-[#181818]',
'bg-darker': 'bg-black/4 dark:bg-white/4',
'fg-base': 'text-dark dark:text-[#dadada]',
- 'border-base': 'border-black/8 dark:border-white/8',
- 'border-b-base': 'border-b-black/8 dark:border-b-white/8',
- 'border-lighter': 'border-light-600 dark:border-dark-300',
- 'border-darker': 'border-black/50 dark:border-white/50',
- 'placeholder-base': 'placeholder:op-50 dark:placeholder:op-30',
+ 'border-base': 'border-light-700 dark:border-[#2a2a2a]',
+ 'border-b-base': 'border-b-light-700 dark:border-b-[#2a2a2a]',
+ 'border-base-100': 'border-light-900 dark:border-[#404040]',
'hv-base': 'transition-colors cursor-pointer hover:bg-darker',
'hv-foreground': 'transition-opacity cursor-pointer op-70 hover:op-100',
'input-base': 'bg-transparent placeholder:op-50 dark:placeholder:op-20 focus:(ring-0 outline-none) resize-none',
- 'button': 'mt-4 px-3 py-2 text-xs border border-base rounded-lg hv-base hover:border-darker',
+ 'button': 'mt-4 px-3 py-2 text-xs border border-base rounded-lg hv-base hover:border-base-100',
'max-w-base': 'max-w-3xl mx-auto',
'text-error': 'text-red-700 dark:text-red-400/80',
'border-error': 'border border-red-700 dark:border-red-400/80',
@@ -68,35 +67,6 @@ export default defineConfig({
'fi': 'flex items-center',
'fcc': 'fc items-center',
'fb': 'flex justify-between',
-
- // TODO: remove below
- 'fie': 'fi justify-end',
- 'col-fcc': 'flex-col fcc',
- 'inline-fcc': 'inline-flex items-center justify-center',
- 'base-focus': 'focus:(bg-op-20 ring-0 outline-none)',
- 'b-slate-link': 'border-b border-(slate none) hover:border-dashed',
- 'gpt-title': 'text-2xl font-extrabold mr-1',
- 'gpt-subtitle': 'text-(2xl transparent) font-extrabold bg-(clip-text gradient-to-r) from-sky-400 to-emerald-600',
- 'gpt-copy-btn': 'absolute top-12px right-12px z-3 fcc border b-transparent w-8 h-8 p-2 bg-light-300 dark:bg-dark-300 op-90 cursor-pointer',
- 'gpt-copy-tips': 'op-0 h-7 bg-black px-2.5 py-1 box-border text-xs c-white fcc rounded absolute z-1 transition duration-600 whitespace-nowrap -top-8',
- 'gpt-retry-btn': 'fi gap-1 px-2 py-0.5 op-70 border border-slate rounded-md text-sm cursor-pointer hover:bg-slate/10',
- 'gpt-back-top-btn': 'fcc p-2.5 text-base rounded-md hover:bg-slate/10 fixed bottom-60px right-20px z-10 cursor-pointer transition-colors',
- 'gpt-back-bottom-btn': 'gpt-back-top-btn bottom-20px transform-rotate-180deg',
- 'gpt-password-input': 'px-4 py-3 h-12 rounded-sm bg-(slate op-15) base-focus',
- 'gpt-password-submit': 'fcc h-12 w-12 bg-slate cursor-pointer bg-op-20 hover:bg-op-50',
- 'gen-slate-btn': 'h-12 px-4 py-2 bg-(slate op-15) hover:bg-op-20 rounded-sm',
- 'gen-cb-wrapper': 'h-12 my-4 fcc gap-4 bg-(slate op-15) rounded-sm',
- 'gen-cb-stop': 'px-2 py-0.5 border border-slate rounded-md text-sm op-70 cursor-pointer hover:bg-slate/10',
- 'gen-text-wrapper': 'my-4 fc gap-2 transition-opacity',
- 'gen-textarea': 'w-full px-3 py-3 min-h-12 max-h-36 rounded-sm bg-(slate op-15) resize-none base-focus placeholder:op-50 dark:(placeholder:op-30) scroll-pa-8px',
- 'sys-edit-btn': 'inline-fcc gap-1 text-sm bg-slate/20 px-2 py-1 rounded-md transition-colors cursor-pointer hover:bg-slate/50',
- 'gpt-toggle-wrapper': 'inline-flex rounded border border-gray-100 bg-gray-100 p-1 cursor-pointer',
- 'gpt-toggle-item': 'inline-block rounded font-semibold px-2 py-1 text-xs text-gray-500 focus:relative',
- 'gpt-toggle-active': 'bg-emerald-500 text-white',
-
- 'icon-base': 'md:(w-6 h-6) w-5 h-5',
- 'icon--off': 'group-hover:hidden inline-block',
- 'icon--on': 'hidden group-hover:inline-block',
}],
preflights: [{
layer: 'base',