mirror of
https://github.com/perfect-panel/ppanel-web.git
synced 2026-02-06 03:30:25 -05:00
🐛 fix: Improve UI for protocol status display in server form component
This commit is contained in:
parent
6ca24333da
commit
461fdb1219
@ -509,13 +509,27 @@ export default function ServerForm(props: {
|
||||
<AccordionItem key={type} value={type} className='mb-2 rounded-lg border'>
|
||||
<AccordionTrigger className='px-4 py-3 hover:no-underline'>
|
||||
<div className='flex w-full items-center justify-between'>
|
||||
<div className='flex flex-col items-start'>
|
||||
<div className='flex items-center gap-2'>
|
||||
<span className='font-medium capitalize'>{type}</span>
|
||||
<div className='flex items-center'>
|
||||
<div
|
||||
className={`mr-3 flex size-9 items-center justify-center rounded-md ${
|
||||
isEnabled
|
||||
? 'bg-green-100 text-green-600 dark:border-green-800 dark:bg-green-950 dark:text-green-400'
|
||||
: 'bg-muted text-muted-foreground'
|
||||
}`}
|
||||
>
|
||||
<Icon
|
||||
icon={isEnabled ? 'mdi:check' : 'mdi:minus'}
|
||||
className='size-5'
|
||||
/>
|
||||
</div>
|
||||
<div className='flex flex-col items-start'>
|
||||
<div className='flex items-center gap-2'>
|
||||
<span className='font-medium capitalize'>{type}</span>
|
||||
</div>
|
||||
<span className='text-muted-foreground text-xs'>
|
||||
{isEnabled ? t('enabled') : t('disabled')}
|
||||
</span>
|
||||
</div>
|
||||
<span className='text-muted-foreground text-xs'>
|
||||
{isEnabled ? t('enabled') : t('disabled')}
|
||||
</span>
|
||||
</div>
|
||||
<div className='mr-2 flex items-center gap-1'>
|
||||
{current.transport && (
|
||||
|
||||
@ -208,7 +208,7 @@ export function SidebarLeft({ ...props }: React.ComponentProps<typeof Sidebar>)
|
||||
<span className='truncate text-sm'>{t(nav.title)}</span>
|
||||
</span>
|
||||
<Icon
|
||||
icon='lucide:chevron-down'
|
||||
icon='mdi:chevron-down'
|
||||
className={`ml-2 size-4 transition-transform ${isOpen ? '' : '-rotate-90'}`}
|
||||
/>
|
||||
</SidebarMenuButton>
|
||||
|
||||
@ -39,7 +39,7 @@ export function UserNav() {
|
||||
<span className='max-w-[40px] truncate text-sm sm:max-w-[100px]'>
|
||||
{user?.auth_methods?.[0]?.auth_identifier.split('@')[0]}
|
||||
</span>
|
||||
<Icon icon='lucide:chevron-down' className='text-muted-foreground size-4' />
|
||||
<Icon icon='mdi:chevron-down' className='text-muted-foreground size-4' />
|
||||
</div>
|
||||
</DropdownMenuTrigger>
|
||||
<DropdownMenuContent forceMount align='end' className='w-64'>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user