diff --git a/frontend/src/components/pages/topics/quick-info.tsx b/frontend/src/components/pages/topics/quick-info.tsx index b77ad577de..896ec8e45c 100644 --- a/frontend/src/components/pages/topics/quick-info.tsx +++ b/frontend/src/components/pages/topics/quick-info.tsx @@ -119,27 +119,30 @@ export const TopicQuickInfoStatistic = (p: { topic: Topic }) => { )} - {cleanupPolicy === 'delete' && ( + {cleanupPolicy === 'delete' && retentionMs && retentionBytes && ( <> - - Retention: - - {retentionMs && retentionBytes ? ( + + + Retention Time: + - ~ - {retentionMs.value === '-1' && retentionBytes.value === '-1' ? ( - 'Unlimited' - ) : ( - <> - {formatConfigValue(retentionMs.name, retentionMs.value, 'friendly')} or{' '} - {formatConfigValue(retentionBytes.name, retentionBytes.value, 'friendly')} - {Number.isFinite(Number(retentionBytes.value)) && - Number(retentionBytes.value) !== -1 && - ' / partition'} - - )} + {retentionMs.value !== '-1' && '~'} + {formatConfigValue(retentionMs.name, retentionMs.value, 'friendly')} - ) : null} + + + + + + + Retention Size: + + + {retentionBytes.value !== '-1' && '~'} + {formatConfigValue(retentionBytes.name, retentionBytes.value, 'friendly')} + {Number.isFinite(Number(retentionBytes.value)) && Number(retentionBytes.value) !== -1 && ' / partition'} + + )}