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}
|
||||
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()
|
||||
|
|
|
@ -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) =>
|
||||
|
|
Loading…
Reference in New Issue
Block a user