From bbbf59c74a2813807a978021a8603ce55f35d04c Mon Sep 17 00:00:00 2001 From: licoy Date: Tue, 2 Jul 2024 10:24:19 +0800 Subject: [PATCH] Improve the Stability parameter control panel --- app/components/button.tsx | 3 + app/components/sd-list.module.scss | 0 app/components/sd-list.tsx | 3 - app/components/sd-panel.module.scss | 33 +++++ app/components/sd-panel.tsx | 220 ++++++++++++++++++++++++++++ app/components/sidebar.tsx | 4 +- app/components/ui-lib.module.scss | 13 ++ app/components/ui-lib.tsx | 7 +- app/locales/cn.ts | 10 ++ app/locales/en.ts | 11 +- app/styles/globals.scss | 3 +- 11 files changed, 299 insertions(+), 8 deletions(-) delete mode 100644 app/components/sd-list.module.scss delete mode 100644 app/components/sd-list.tsx create mode 100644 app/components/sd-panel.module.scss create mode 100644 app/components/sd-panel.tsx diff --git a/app/components/button.tsx b/app/components/button.tsx index 7a5633924..c6039acc2 100644 --- a/app/components/button.tsx +++ b/app/components/button.tsx @@ -1,6 +1,7 @@ import * as React from "react"; import styles from "./button.module.scss"; +import { CSSProperties } from "react"; export type ButtonType = "primary" | "danger" | null; @@ -16,6 +17,7 @@ export function IconButton(props: { disabled?: boolean; tabIndex?: number; autoFocus?: boolean; + style?: CSSProperties; }) { return (