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 { ListItem, Select } from "./ui-lib";
import { useAllModels } from "../utils/hooks"; import { useAllModels } from "../utils/hooks";
import { groupBy } from "lodash-es"; import { groupBy } from "lodash-es";
import styles from "./ui-lib.module.scss";
export function ModelConfigList(props: { export function ModelConfigList(props: {
modelConfig: ModelConfig; modelConfig: ModelConfig;
@ -243,7 +242,7 @@ export function ModelConfigList(props: {
subTitle={Locale.Settings.CompressModel.SubTitle} subTitle={Locale.Settings.CompressModel.SubTitle}
> >
<Select <Select
className={styles["select-model"]} style={{ width: "60%" }}
aria-label={Locale.Settings.CompressModel.Title} aria-label={Locale.Settings.CompressModel.Title}
value={compressModelValue} value={compressModelValue}
onChange={(e) => { onChange={(e) => {

View File

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

View File

@ -690,7 +690,7 @@ export function Settings() {
const saasStartComponent = ( const saasStartComponent = (
<ListItem <ListItem
className={styles["SubTitle-button"]} className={styles["subtitle-button"]}
title={ title={
Locale.Settings.Access.SaasStart.Title + Locale.Settings.Access.SaasStart.Title +
`${Locale.Settings.Access.SaasStart.Label}` `${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 { .modal-input {
height: 100%; height: 100%;
width: 100%; width: 100%;

View File

@ -298,12 +298,13 @@ export function Select(
HTMLSelectElement HTMLSelectElement
>, >,
) { ) {
const { className, children, align, ...otherProps } = props; const { className, children, align, style, ...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}
> >
<select className={styles["select-with-icon-select"]} {...otherProps}> <select className={styles["select-with-icon-select"]} {...otherProps}>
{children} {children}