feat(subscription): Improve layout and organization of subscription detail tabs

This commit is contained in:
web@ppanel 2025-03-08 12:43:57 +07:00
parent 2215c7f2b9
commit e4630f8ca9

View File

@ -57,6 +57,7 @@ export function SubscriptionDetail({
{t('onlineDevices')}
</TabsTrigger>
</TabsList>
<div className='mt-4 max-h-[60dvh] overflow-y-auto'>
<TabsContent value='logs'>
<ProTable<API.UserSubscribeLog, Record<string, unknown>>
columns={[
@ -97,7 +98,9 @@ export function SubscriptionDetail({
{
accessorKey: 'download',
header: t('download'),
cell: ({ row }) => <Display type='traffic' value={row.getValue('download')} />,
cell: ({ row }) => (
<Display type='traffic' value={row.getValue('download')} />
),
},
{
accessorKey: 'upload',
@ -201,6 +204,7 @@ export function SubscriptionDetail({
}}
/>
</TabsContent>
</div>
</Tabs>
</div>
</DialogContent>