mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2025-12-27 13:10:30 +08:00
group style
This commit is contained in:
parent
df8ae6392e
commit
4b5b0787e6
@ -78,10 +78,19 @@ const Proxies: React.FC = () => {
|
|||||||
{groups.map((group) => {
|
{groups.map((group) => {
|
||||||
return (
|
return (
|
||||||
<AccordionItem
|
<AccordionItem
|
||||||
|
textValue={group.name}
|
||||||
key={group.name}
|
key={group.name}
|
||||||
title={
|
title={
|
||||||
<div className="flex justify-between">
|
<div className="flex justify-between">
|
||||||
<div>{group.name}</div>
|
<div className="">
|
||||||
|
<div className="inline">{group.name}</div>
|
||||||
|
{proxyDisplayMode === 'full' && (
|
||||||
|
<>
|
||||||
|
<div className="inline ml-2 text-sm text-default-500">{group.type}</div>
|
||||||
|
<div className="inline ml-2 text-sm text-default-500">{group.now}</div>
|
||||||
|
</>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
<Button
|
<Button
|
||||||
variant="light"
|
variant="light"
|
||||||
size="sm"
|
size="sm"
|
||||||
@ -94,15 +103,6 @@ const Proxies: React.FC = () => {
|
|||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
subtitle={
|
|
||||||
proxyDisplayMode === 'full' && (
|
|
||||||
<div>
|
|
||||||
{group.type}
|
|
||||||
|
|
||||||
{group.now}
|
|
||||||
</div>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
classNames={{ title: 'select-none', base: 'px-2', content: 'pt-2', trigger: 'py-2' }}
|
classNames={{ title: 'select-none', base: 'px-2', content: 'pt-2', trigger: 'py-2' }}
|
||||||
startContent={
|
startContent={
|
||||||
group.icon.length > 0 ? (
|
group.icon.length > 0 ? (
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user