mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-09-11 14:41:21 +00:00
perf(data-table): optimize action column width allocation (#6135)
- apply a minimum width hint to content-sized columns to prevent wasted space. - preserve remaining table width allocation across regular data columns.
This commit is contained in:
@@ -54,7 +54,7 @@ function getColumnWidth<TData>(
|
|||||||
totalSize: number
|
totalSize: number
|
||||||
) {
|
) {
|
||||||
if (isContentSizedColumn(columnId)) {
|
if (isContentSizedColumn(columnId)) {
|
||||||
return undefined
|
return '1%'
|
||||||
}
|
}
|
||||||
|
|
||||||
if (table.options.enableColumnResizing === true) {
|
if (table.options.enableColumnResizing === true) {
|
||||||
|
|||||||
Reference in New Issue
Block a user