feat: 完善图像工作区与创作工具体验
This commit is contained in:
@@ -49,7 +49,6 @@ export function Settings() {
|
||||
const { t } = useTranslation('settings');
|
||||
const navigate = useNavigate();
|
||||
const {
|
||||
language,
|
||||
setLanguage,
|
||||
launchAtStartup,
|
||||
setLaunchAtStartup,
|
||||
@@ -309,7 +308,6 @@ export function Settings() {
|
||||
<div className="mx-auto flex max-w-4xl flex-col gap-8 px-8 py-8">
|
||||
<div>
|
||||
<h1 className="text-2xl font-semibold tracking-normal">{t('title')}</h1>
|
||||
<p className="mt-1 text-sm text-muted-foreground">{t('subtitle')}</p>
|
||||
</div>
|
||||
|
||||
<section className="space-y-5" data-testid="settings-general-section">
|
||||
@@ -334,14 +332,13 @@ export function Settings() {
|
||||
/>
|
||||
</Button>
|
||||
</div>
|
||||
<p className="text-sm text-muted-foreground">{t('appearance.description')}</p>
|
||||
</div>
|
||||
|
||||
<div className="grid gap-3 rounded-lg border bg-card p-4">
|
||||
<Label htmlFor="language">{t('appearance.language')}</Label>
|
||||
<select
|
||||
id="language"
|
||||
value={language}
|
||||
value="zh"
|
||||
onChange={(event) => setLanguage(event.target.value)}
|
||||
className="h-10 rounded-md border bg-background px-3 text-sm"
|
||||
>
|
||||
@@ -366,9 +363,6 @@ export function Settings() {
|
||||
<div className="flex items-start justify-between gap-4">
|
||||
<div>
|
||||
<h2 className="text-lg font-medium">Runtime</h2>
|
||||
<p className="text-sm text-muted-foreground">
|
||||
Check the local runtime status or restart it when needed.
|
||||
</p>
|
||||
</div>
|
||||
<Badge variant={opencodeStatus.state === 'running' ? 'default' : 'secondary'}>
|
||||
{opencodeStatus.state}
|
||||
@@ -410,7 +404,6 @@ export function Settings() {
|
||||
<section className="space-y-5" data-testid="settings-updates">
|
||||
<div>
|
||||
<h2 className="text-lg font-medium">{t('updates.title')}</h2>
|
||||
<p className="text-sm text-muted-foreground">{t('updates.description')}</p>
|
||||
</div>
|
||||
<div className="rounded-lg border bg-card p-4">
|
||||
<UpdateSettings />
|
||||
|
||||
Reference in New Issue
Block a user