forked from XiaoMo/ChatGPT-Next-Web
优化Select component
This commit is contained in:
parent
96e3d3a22c
commit
960aa90c32
@ -209,6 +209,7 @@
|
|||||||
max-width: fit-content;
|
max-width: fit-content;
|
||||||
|
|
||||||
.select-with-icon-select {
|
.select-with-icon-select {
|
||||||
|
height: 100%;
|
||||||
border: var(--border-in-light);
|
border: var(--border-in-light);
|
||||||
padding: 10px 25px 10px 10px;
|
padding: 10px 25px 10px 10px;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
@ -217,7 +218,6 @@
|
|||||||
background-color: var(--white);
|
background-color: var(--white);
|
||||||
color: var(--black);
|
color: var(--black);
|
||||||
text-align: center;
|
text-align: center;
|
||||||
position: relative;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.select-with-icon-icon {
|
.select-with-icon-icon {
|
||||||
|
@ -254,11 +254,8 @@ export function Select(
|
|||||||
) {
|
) {
|
||||||
const { className, children, ...otherProps } = props;
|
const { className, children, ...otherProps } = props;
|
||||||
return (
|
return (
|
||||||
<div className={styles["select-with-icon"]}>
|
<div className={`${styles["select-with-icon"]} ${className}`}>
|
||||||
<select
|
<select className={styles["select-with-icon-select"]} {...otherProps}>
|
||||||
className={`${styles["select-with-icon-select"]} ${className}`}
|
|
||||||
{...otherProps}
|
|
||||||
>
|
|
||||||
{children}
|
{children}
|
||||||
</select>
|
</select>
|
||||||
<DownIcon className={styles["select-with-icon-icon"]} />
|
<DownIcon className={styles["select-with-icon-icon"]} />
|
||||||
|
Loading…
Reference in New Issue
Block a user