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