Kaynağa Gözat

fix style slect button

lyf 1 yıl önce
ebeveyn
işleme
fe4cba8baf

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

@@ -7,7 +7,7 @@
   padding: 10px;
   cursor: pointer;
   transition: all 0.3s ease;
-  // overflow: hidden;
+  overflow: hidden;
   user-select: none;
   outline: none;
   border: none;

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

@@ -6,6 +6,7 @@ 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;
@@ -242,6 +243,7 @@ export function ModelConfigList(props: {
         subTitle={Locale.Settings.CompressModel.SubTitle}
       >
         <Select
+          className={styles["select-model"]}
           aria-label={Locale.Settings.CompressModel.Title}
           value={compressModelValue}
           onChange={(e) => {

+ 6 - 0
app/components/settings.module.scss

@@ -72,3 +72,9 @@
     }
   }
 }
+
+.SubTitle-button {
+  button {
+    overflow:visible ;
+  }
+}

+ 1 - 0
app/components/settings.tsx

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

+ 17 - 6
app/components/ui-lib.module.scss

@@ -62,14 +62,14 @@
     }
   }
 
-  &.vertical{
+  &.vertical {
     flex-direction: column;
     align-items: start;
-    .list-header{
-      .list-item-title{
+    .list-header {
+      .list-item-title {
         margin-bottom: 5px;
       }
-      .list-item-sub-title{
+      .list-item-sub-title {
         margin-bottom: 2px;
       }
     }
@@ -250,7 +250,8 @@
 
 .select-with-icon {
   position: relative;
-  max-width: 60%;
+  max-width: fit-content;
+
   &.left-align-option {
     option {
       text-align: left;
@@ -280,6 +281,15 @@
   }
 }
 
+.select-model {
+  width: 60%;
+  .select-with-icon-select {
+    max-width: 100%;
+    white-space: normal;
+  }
+}
+
+
 .modal-input {
   height: 100%;
   width: 100%;
@@ -311,7 +321,7 @@
   justify-content: center;
   z-index: 999;
 
-  .selector-item-disabled{
+  .selector-item-disabled {
     opacity: 0.6;
   }
 
@@ -337,3 +347,4 @@
     }
   }
 }
+