mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-02 23:06:36 +08:00
[优化] 界面优化
This commit is contained in:
@@ -156,7 +156,7 @@ export function DangerButton({
|
||||
|
||||
interface ToggleFieldProps {
|
||||
label: string;
|
||||
description: string;
|
||||
description?: string;
|
||||
checked: boolean;
|
||||
disabled?: boolean;
|
||||
tooltip?: string;
|
||||
@@ -185,9 +185,11 @@ export function ToggleField({
|
||||
<span>{label}</span>
|
||||
{tooltip ? <FieldTooltip content={tooltip} /> : null}
|
||||
</span>
|
||||
<span className="block text-xs leading-5 text-[var(--foreground-secondary)]">
|
||||
{description}
|
||||
</span>
|
||||
{description ? (
|
||||
<span className="block text-xs leading-5 text-[var(--foreground-secondary)]">
|
||||
{description}
|
||||
</span>
|
||||
) : null}
|
||||
</span>
|
||||
</label>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user