Fix for sizes of table action columns (#657)

This commit is contained in:
Sherfin Shamsudeen 2021-09-01 08:25:46 +05:30 committed by GitHub
parent 6703244857
commit 93bb91aca7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -438,7 +438,7 @@ export function Table({
id: 'leftActions',
Header: 'Actions',
accessor: 'edit',
width: columnSizes.actions || defaultColumn.width,
width: columnSizes.leftActions || defaultColumn.width,
Cell: (cell) => {
return leftActions().map((action) => (
<button
@ -464,7 +464,7 @@ export function Table({
id: 'rightActions',
Header: 'Actions',
accessor: 'edit',
width: columnSizes.actions || defaultColumn.width,
width: columnSizes.rightActions || defaultColumn.width,
Cell: (cell) => {
return rightActions().map((action) => (
<button