fix(web): satisfy prettier and align the switcher layout spec after the upgrade control

Co-authored-by: multica-agent <[email protected]>
This commit is contained in:
Chin Rock
2026-10-21 08:06:42 +00:00
co-authored by multica-agent
parent fa2913a986
commit 61c59687c2
5 changed files with 32 additions and 11 deletions
@@ -70,7 +70,9 @@ import { Button } from '@/components/ui/button';
import WorkspaceSwitcher, {
OPEN_WORKSPACE_SETTINGS_EVENT,
} from '@/app/home/components/workspace-settings/WorkspaceSwitcher';
const CloudPlansDialog = lazy(() => import('@/app/home/components/workspace-settings/CloudPlansDialog'));
const CloudPlansDialog = lazy(
() => import('@/app/home/components/workspace-settings/CloudPlansDialog'),
);
import NewVersionDialog from '@/app/home/components/new-version-dialog/NewVersionDialog';
import SettingsDialog, {
SettingsSection,
@@ -44,7 +44,9 @@ export default function WorkspaceSwitcher({
aria-label={t('workspace.switchWorkspace')}
>
<Building2 className="size-4 shrink-0" />
<span className="max-w-[6rem] truncate">{currentWorkspace.workspace.name}</span>
<span className="max-w-[6rem] truncate">
{currentWorkspace.workspace.name}
</span>
</Button>
</DropdownMenuTrigger>
<DropdownMenuContent align="start" className="w-64 p-1.5">
+2 -1
View File
@@ -103,7 +103,8 @@ const jaJP = {
retentionHelp: '保存期間を過ぎた履歴は自動的に削除されます。',
credits: '毎月 {{count}} クレジット',
creditsLabel: 'モデルクレジット',
creditsHelp: '年払いでも、契約の各月にクレジットが付与されます。クレジットが不足しても、独自に設定したモデルプロバイダーを引き続き利用できます。',
creditsHelp:
'年払いでも、契約の各月にクレジットが付与されます。クレジットが不足しても、独自に設定したモデルプロバイダーを引き続き利用できます。',
platforms: '主要プラットフォームに対応',
excludedPlatforms: '対象外:{{platforms}}',
allPlatforms: '現在利用可能なすべてのプラットフォーム',
+2 -1
View File
@@ -99,7 +99,8 @@ const zhHans = {
retentionHelp: '超过保留时长的消息记录会自动清理。',
credits: '每月赠送 {{count}} 积分',
creditsLabel: '模型积分',
creditsHelp: '每个订阅月自动发放,年付计划同样按月发放。积分用尽后,仍可接入自行配置的模型供应商继续使用。',
creditsHelp:
'每个订阅月自动发放,年付计划同样按月发放。积分用尽后,仍可接入自行配置的模型供应商继续使用。',
platforms: '支持主流平台',
excludedPlatforms: '不支持:{{platforms}}',
allPlatforms: '支持当前所有可用平台',