Commit 270accc3 by QuentinHsu Committed by GitHub

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.
parent 2ef4cfff
...@@ -54,7 +54,7 @@ function getColumnWidth<TData>( ...@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment