fix: align mobile usage log cost badge
This commit is contained in:
@@ -183,14 +183,17 @@ function CommonLogsCard<TData>({
|
|||||||
|
|
||||||
const modelCell = cells.get('model_name')
|
const modelCell = cells.get('model_name')
|
||||||
const quotaCell = cells.get('quota')
|
const quotaCell = cells.get('quota')
|
||||||
|
const createdAtCellOriginal = cells.get('created_at')?.row.original as
|
||||||
|
| Record<string, unknown>
|
||||||
|
| undefined
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className='space-y-2.5'>
|
<div className='space-y-2.5'>
|
||||||
<div className='flex min-w-0 items-start justify-between gap-3'>
|
<div className='flex min-w-0 items-center justify-between gap-3'>
|
||||||
<CompactCell cell={modelCell} className='flex-1' />
|
<CompactCell cell={modelCell} className='flex-1' />
|
||||||
<CompactCell
|
<CompactCell
|
||||||
cell={quotaCell}
|
cell={quotaCell}
|
||||||
className='shrink-0 text-right [&_span]:!h-6 [&_span]:!px-2 [&_span]:!text-sm [&_span]:!leading-none'
|
className='shrink-0 text-right [&_.flex-col]:items-end'
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -200,8 +203,8 @@ function CommonLogsCard<TData>({
|
|||||||
{t('Time')}
|
{t('Time')}
|
||||||
</div>
|
</div>
|
||||||
<MobileLogTimeStatus
|
<MobileLogTimeStatus
|
||||||
createdAt={cells.get('created_at')?.row.original?.created_at}
|
createdAt={createdAtCellOriginal?.created_at}
|
||||||
type={cells.get('created_at')?.row.original?.type}
|
type={createdAtCellOriginal?.type}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<SummaryField
|
<SummaryField
|
||||||
|
|||||||
Reference in New Issue
Block a user