mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-09 19:46:37 +08:00
feat: add SearchInput to ui-lib
This commit is contained in:
parent
2c12be62c4
commit
31d436cc7e
@ -275,6 +275,20 @@ export function PasswordInput(props: HTMLProps<HTMLInputElement>) {
|
||||
);
|
||||
}
|
||||
|
||||
export function SearchInput(props: HTMLProps<HTMLInputElement>) {
|
||||
const [visible, setVisible] = useState(false);
|
||||
|
||||
function changeVisibility() {
|
||||
setVisible(!visible);
|
||||
}
|
||||
|
||||
return (
|
||||
<div className={"search-input-container"}>
|
||||
<input {...props} type="text" className={"search-input"} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export function Select(
|
||||
props: React.DetailedHTMLProps<
|
||||
React.SelectHTMLAttributes<HTMLSelectElement>,
|
||||
|
@ -339,6 +339,16 @@ pre {
|
||||
}
|
||||
}
|
||||
|
||||
.search-input-container {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
|
||||
.search-input {
|
||||
min-width: 99%;
|
||||
text-align: left;
|
||||
}
|
||||
}
|
||||
|
||||
.user-avatar {
|
||||
height: 30px;
|
||||
min-height: 30px;
|
||||
|
Loading…
Reference in New Issue
Block a user