Skip to content

Commit

Permalink
group style
Browse files Browse the repository at this point in the history
  • Loading branch information
pompurin404 committed Aug 3, 2024
1 parent d9120e4 commit e0782f6
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/renderer/src/pages/proxies.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -94,15 +103,6 @@ const Proxies: React.FC = () => {
</Button>
</div>
}
subtitle={
proxyDisplayMode === 'full' && (
<div>
{group.type}
&nbsp;
{group.now}
</div>
)
}
classNames={{ title: 'select-none', base: 'px-2', content: 'pt-2', trigger: 'py-2' }}
startContent={
group.icon.length > 0 ? (
Expand Down

0 comments on commit e0782f6

Please sign in to comment.