refactor: table view cell height
This commit is contained in:
@@ -59,7 +59,7 @@ function TableRow<Data>({
|
|||||||
aria-colindex={cell.colIndex + 1}
|
aria-colindex={cell.colIndex + 1}
|
||||||
key={index}
|
key={index}
|
||||||
className={classNames(
|
className={classNames(
|
||||||
'relative flex items-center overflow-hidden border-b border-border py-3 px-3 focus:border-info',
|
'relative flex items-center overflow-hidden border-b border-border py-4 px-3 focus:border-info',
|
||||||
row.isSelected && 'bg-info-backdrop',
|
row.isSelected && 'bg-info-backdrop',
|
||||||
canSelectRows && 'cursor-pointer',
|
canSelectRows && 'cursor-pointer',
|
||||||
canSelectRows && isHoveredOrFocused && 'bg-contrast',
|
canSelectRows && isHoveredOrFocused && 'bg-contrast',
|
||||||
@@ -91,7 +91,7 @@ function TableRow<Data>({
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
const MinTableRowHeight = 41
|
const MinTableRowHeight = 50
|
||||||
const MinRowsToDisplay = 20
|
const MinRowsToDisplay = 20
|
||||||
const PageSize = Math.ceil(document.documentElement.clientHeight / MinTableRowHeight) || MinRowsToDisplay
|
const PageSize = Math.ceil(document.documentElement.clientHeight / MinTableRowHeight) || MinRowsToDisplay
|
||||||
const PageScrollThreshold = 200
|
const PageScrollThreshold = 200
|
||||||
|
|||||||
Reference in New Issue
Block a user