fix groups

This commit is contained in:
pompurin404 2024-09-03 14:36:47 +08:00
parent d47a2a8908
commit 5438aef528
No known key found for this signature in database
2 changed files with 9 additions and 6 deletions

View File

@ -17,18 +17,20 @@ const CollapseInput: React.FC<CollapseInputProps> = (props) => {
{...inputProps}
style={{ paddingInlineEnd: 0 }}
classNames={{
inputWrapper: 'bg-transparent',
input: `w-0 focus:w-[150px] bg-transparent transition-all duration-200`
inputWrapper: 'cursor-pointer bg-transparent p-0 data-[hover=true]:bg-content2',
input: 'w-0 focus:w-[150px] transition-all duration-200',
innerWrapper: 'cursor-pointer p-0'
}}
endContent={
<FaSearch
title={title}
className="cursor-pointer text-lg text-default-500"
<div
className="cursor-pointer p-2 text-lg text-default-500"
onClick={(e) => {
e.stopPropagation()
inputRef.current?.focus()
}}
/>
>
<FaSearch title={title} />
</div>
}
onClick={(e) => {
e.stopPropagation()

View File

@ -35,6 +35,7 @@ const Proxies: React.FC = () => {
const { groupCounts, allProxies } = useMemo(() => {
const groupCounts: number[] = []
const allProxies: (IMihomoProxy | IMihomoGroup)[][] = []
if (groups.length !== searchValue.length) setSearchValue(Array(groups.length).fill(''))
groups.forEach((group, index) => {
if (isOpen[index]) {
let groupProxies = group.all.filter((proxy) =>