mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-05-19 04:00:16 +09:00
fix
This commit is contained in:
parent
a6b920d9af
commit
10d472e79e
7
app/components/model-config.module.scss
Normal file
7
app/components/model-config.module.scss
Normal file
@ -0,0 +1,7 @@
|
||||
.select-compress-model {
|
||||
width: 60%;
|
||||
select {
|
||||
max-width: 100%;
|
||||
white-space: normal;
|
||||
}
|
||||
}
|
@ -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 "./model-config.module.scss";
|
||||
|
||||
export function ModelConfigList(props: {
|
||||
modelConfig: ModelConfig;
|
||||
@ -242,8 +243,7 @@ export function ModelConfigList(props: {
|
||||
subTitle={Locale.Settings.CompressModel.SubTitle}
|
||||
>
|
||||
<Select
|
||||
withiconstyle={{ width: "60%" }}
|
||||
iconselectstyles={{ maxWidth: "100%", whiteSpace: "normal" }}
|
||||
className={styles["select-compress-model"]}
|
||||
aria-label={Locale.Settings.CompressModel.Title}
|
||||
value={compressModelValue}
|
||||
onChange={(e) => {
|
||||
|
@ -294,32 +294,18 @@ export function Select(
|
||||
props: React.DetailedHTMLProps<
|
||||
React.SelectHTMLAttributes<HTMLSelectElement> & {
|
||||
align?: "left" | "center";
|
||||
withiconstyle?: CSSProperties;
|
||||
iconselectstyles?: CSSProperties;
|
||||
},
|
||||
HTMLSelectElement
|
||||
>,
|
||||
) {
|
||||
const {
|
||||
className,
|
||||
children,
|
||||
align,
|
||||
withiconstyle,
|
||||
iconselectstyles,
|
||||
...otherProps
|
||||
} = props;
|
||||
const { className, children, align, ...otherProps } = props;
|
||||
return (
|
||||
<div
|
||||
className={`${styles["select-with-icon"]} ${
|
||||
align === "left" ? styles["left-align-option"] : ""
|
||||
} ${className}`}
|
||||
style={withiconstyle}
|
||||
>
|
||||
<select
|
||||
className={styles["select-with-icon-select"]}
|
||||
style={iconselectstyles}
|
||||
{...otherProps}
|
||||
>
|
||||
<select className={styles["select-with-icon-select"]} {...otherProps}>
|
||||
{children}
|
||||
</select>
|
||||
<DownIcon className={styles["select-with-icon-icon"]} />
|
||||
|
Loading…
Reference in New Issue
Block a user