fix style

This commit is contained in:
lyf 2024-09-25 11:15:00 +08:00
parent fe4cba8baf
commit 248d27680d
5 changed files with 5 additions and 14 deletions

View File

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

View File

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

View File

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

View File

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

View File

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