fix
This commit is contained in:
parent
77f037a3c4
commit
a6b920d9af
|
@ -242,7 +242,8 @@ export function ModelConfigList(props: {
|
||||||
subTitle={Locale.Settings.CompressModel.SubTitle}
|
subTitle={Locale.Settings.CompressModel.SubTitle}
|
||||||
>
|
>
|
||||||
<Select
|
<Select
|
||||||
style={{ width: "60%" }}
|
withiconstyle={{ width: "60%" }}
|
||||||
|
iconselectstyles={{ maxWidth: "100%", whiteSpace: "normal" }}
|
||||||
aria-label={Locale.Settings.CompressModel.Title}
|
aria-label={Locale.Settings.CompressModel.Title}
|
||||||
value={compressModelValue}
|
value={compressModelValue}
|
||||||
onChange={(e) => {
|
onChange={(e) => {
|
||||||
|
|
|
@ -260,11 +260,9 @@
|
||||||
|
|
||||||
.select-with-icon-select {
|
.select-with-icon-select {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
max-width: 100%;
|
|
||||||
border: var(--border-in-light);
|
border: var(--border-in-light);
|
||||||
padding: 10px 35px 10px 10px;
|
padding: 10px 35px 10px 10px;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
white-space: normal;
|
|
||||||
appearance: none;
|
appearance: none;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
background-color: var(--white);
|
background-color: var(--white);
|
||||||
|
|
|
@ -294,19 +294,32 @@ export function Select(
|
||||||
props: React.DetailedHTMLProps<
|
props: React.DetailedHTMLProps<
|
||||||
React.SelectHTMLAttributes<HTMLSelectElement> & {
|
React.SelectHTMLAttributes<HTMLSelectElement> & {
|
||||||
align?: "left" | "center";
|
align?: "left" | "center";
|
||||||
|
withiconstyle?: CSSProperties;
|
||||||
|
iconselectstyles?: CSSProperties;
|
||||||
},
|
},
|
||||||
HTMLSelectElement
|
HTMLSelectElement
|
||||||
>,
|
>,
|
||||||
) {
|
) {
|
||||||
const { className, children, align, style, ...otherProps } = props;
|
const {
|
||||||
|
className,
|
||||||
|
children,
|
||||||
|
align,
|
||||||
|
withiconstyle,
|
||||||
|
iconselectstyles,
|
||||||
|
...otherProps
|
||||||
|
} = props;
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
className={`${styles["select-with-icon"]} ${
|
className={`${styles["select-with-icon"]} ${
|
||||||
align === "left" ? styles["left-align-option"] : ""
|
align === "left" ? styles["left-align-option"] : ""
|
||||||
} ${className}`}
|
} ${className}`}
|
||||||
style={style}
|
style={withiconstyle}
|
||||||
|
>
|
||||||
|
<select
|
||||||
|
className={styles["select-with-icon-select"]}
|
||||||
|
style={iconselectstyles}
|
||||||
|
{...otherProps}
|
||||||
>
|
>
|
||||||
<select className={styles["select-with-icon-select"]} {...otherProps}>
|
|
||||||
{children}
|
{children}
|
||||||
</select>
|
</select>
|
||||||
<DownIcon className={styles["select-with-icon-icon"]} />
|
<DownIcon className={styles["select-with-icon-icon"]} />
|
||||||
|
|
Loading…
Reference in New Issue