style(cluster): center pool replicas cell

This commit is contained in:
jialin
2026-07-23 20:47:23 +08:00
parent aca6490da1
commit 63fb8c69b6
2 changed files with 6 additions and 1 deletions
@@ -163,7 +163,11 @@ const PoolRows: React.FC<PoolRowsProps> = ({
key={col.dataIndex || col.key}
span={spanFor(col.dataIndex)}
style={{
color: 'var(--ant-color-text-secondary)'
color: 'var(--ant-color-text-secondary)',
// CellContent shrinks to its content inside the flex
// cell, so its own align class can't center it —
// center at the cell level instead.
justifyContent: col.align
}}
>
<CellContent
@@ -116,6 +116,7 @@ const usePoolsColumns = (
dataIndex: 'replicas',
span: 6,
key: 'replicas',
align: 'center',
editable: {
valueType: 'number',
title: intl.formatMessage({ id: 'models.table.replicas.edit' })