lyf преди 1 година
родител
ревизия
248d27680d
променени са 5 файла, в които са добавени 5 реда и са изтрити 14 реда
  1. 1 2
      app/components/model-config.tsx
  2. 1 1
      app/components/settings.module.scss
  3. 1 1
      app/components/settings.tsx
  4. 0 9
      app/components/ui-lib.module.scss
  5. 2 1
      app/components/ui-lib.tsx

+ 1 - 2
app/components/model-config.tsx

@@ -6,7 +6,6 @@ import { InputRange } from "./input-range";
 import { ListItem, Select } from "./ui-lib";
 import { useAllModels } from "../utils/hooks";
 import { groupBy } from "lodash-es";
-import styles from "./ui-lib.module.scss";
 
 export function ModelConfigList(props: {
   modelConfig: ModelConfig;
@@ -243,7 +242,7 @@ export function ModelConfigList(props: {
         subTitle={Locale.Settings.CompressModel.SubTitle}
       >
         <Select
-          className={styles["select-model"]}
+          style={{ width: "60%" }}
           aria-label={Locale.Settings.CompressModel.Title}
           value={compressModelValue}
           onChange={(e) => {

+ 1 - 1
app/components/settings.module.scss

@@ -73,7 +73,7 @@
   }
 }
 
-.SubTitle-button {
+.subtitle-button {
   button {
     overflow:visible ;
   }

+ 1 - 1
app/components/settings.tsx

@@ -690,7 +690,7 @@ export function Settings() {
 
   const saasStartComponent = (
     <ListItem
-      className={styles["SubTitle-button"]}
+      className={styles["subtitle-button"]}
       title={
         Locale.Settings.Access.SaasStart.Title +
         `${Locale.Settings.Access.SaasStart.Label}`

+ 0 - 9
app/components/ui-lib.module.scss

@@ -281,15 +281,6 @@
   }
 }
 
-.select-model {
-  width: 60%;
-  .select-with-icon-select {
-    max-width: 100%;
-    white-space: normal;
-  }
-}
-
-
 .modal-input {
   height: 100%;
   width: 100%;

+ 2 - 1
app/components/ui-lib.tsx

@@ -298,12 +298,13 @@ export function Select(
     HTMLSelectElement
   >,
 ) {
-  const { className, children, align, ...otherProps } = props;
+  const { className, children, align, style, ...otherProps } = props;
   return (
     <div
       className={`${styles["select-with-icon"]} ${
         align === "left" ? styles["left-align-option"] : ""
       } ${className}`}
+      style={style}
     >
       <select className={styles["select-with-icon-select"]} {...otherProps}>
         {children}