fix style slect button

This commit is contained in:
lyf 2024-09-24 22:25:36 +08:00
parent 6d5bf490ab
commit fe4cba8baf
5 changed files with 27 additions and 7 deletions

View File

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

View File

@ -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) => {

View File

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

View File

@ -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}`

View File

@ -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 @@
}
}
}