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