diff --git a/src/renderer/src/components/GeneralSettingsPanel.tsx b/src/renderer/src/components/GeneralSettingsPanel.tsx index c11dde6..51b7e26 100644 --- a/src/renderer/src/components/GeneralSettingsPanel.tsx +++ b/src/renderer/src/components/GeneralSettingsPanel.tsx @@ -23,9 +23,10 @@ import type { ReactNode } from 'react' import type { GeneralSettingsView } from '@shared/types' import { Button } from '../ui/Button' import { Input } from '../ui/Input' +import { StaticSelect } from '../ui/Select' import { Switch } from '../ui/Switch' import { IconTaskOpenFolder } from './task-menu-icons' -import { IconNotificationAuthorize, IconSelectCaret } from './general-settings-icons' +import { IconNotificationAuthorize } from './general-settings-icons' import './source-general-settings.css' const UNAVAILABLE_HINT = '暂未接入' @@ -113,19 +114,6 @@ function Section({ title, desc, action, body, stacked, className }: SectionProps ) } -/** 未接入的下拉:原版 120×32 闭合态(value + caret),不可展开。 */ -function UnavailableSelect({ value, className, ariaLabel }: { value: string; className?: string; ariaLabel: string }): React.JSX.Element { - return ( - - - - ) -} - /** * 未接入的字体大小滑块:原版 .font-size-slider 结构(224 宽、6 个刻度、2 个激活、thumb 位于 * left 44.8px = 默认档,标签 小/默认/大)。 @@ -194,9 +182,10 @@ export default function GeneralSettingsPanel(): React.JSX.Element {
常规
权限