mirror of
https://github.com/pompurin404/mihomo-party.git
synced 2024-11-16 11:42:19 +08:00
fix groups
This commit is contained in:
parent
d47a2a8908
commit
5438aef528
|
@ -17,18 +17,20 @@ const CollapseInput: React.FC<CollapseInputProps> = (props) => {
|
||||||
{...inputProps}
|
{...inputProps}
|
||||||
style={{ paddingInlineEnd: 0 }}
|
style={{ paddingInlineEnd: 0 }}
|
||||||
classNames={{
|
classNames={{
|
||||||
inputWrapper: 'bg-transparent',
|
inputWrapper: 'cursor-pointer bg-transparent p-0 data-[hover=true]:bg-content2',
|
||||||
input: `w-0 focus:w-[150px] bg-transparent transition-all duration-200`
|
input: 'w-0 focus:w-[150px] transition-all duration-200',
|
||||||
|
innerWrapper: 'cursor-pointer p-0'
|
||||||
}}
|
}}
|
||||||
endContent={
|
endContent={
|
||||||
<FaSearch
|
<div
|
||||||
title={title}
|
className="cursor-pointer p-2 text-lg text-default-500"
|
||||||
className="cursor-pointer text-lg text-default-500"
|
|
||||||
onClick={(e) => {
|
onClick={(e) => {
|
||||||
e.stopPropagation()
|
e.stopPropagation()
|
||||||
inputRef.current?.focus()
|
inputRef.current?.focus()
|
||||||
}}
|
}}
|
||||||
/>
|
>
|
||||||
|
<FaSearch title={title} />
|
||||||
|
</div>
|
||||||
}
|
}
|
||||||
onClick={(e) => {
|
onClick={(e) => {
|
||||||
e.stopPropagation()
|
e.stopPropagation()
|
||||||
|
|
|
@ -35,6 +35,7 @@ const Proxies: React.FC = () => {
|
||||||
const { groupCounts, allProxies } = useMemo(() => {
|
const { groupCounts, allProxies } = useMemo(() => {
|
||||||
const groupCounts: number[] = []
|
const groupCounts: number[] = []
|
||||||
const allProxies: (IMihomoProxy | IMihomoGroup)[][] = []
|
const allProxies: (IMihomoProxy | IMihomoGroup)[][] = []
|
||||||
|
if (groups.length !== searchValue.length) setSearchValue(Array(groups.length).fill(''))
|
||||||
groups.forEach((group, index) => {
|
groups.forEach((group, index) => {
|
||||||
if (isOpen[index]) {
|
if (isOpen[index]) {
|
||||||
let groupProxies = group.all.filter((proxy) =>
|
let groupProxies = group.all.filter((proxy) =>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user