Fix: table header fixed

This commit is contained in:
Dreamacro 2020-12-06 17:40:41 +08:00
parent 2a64df2e42
commit 49b88ec874

View File

@ -251,7 +251,7 @@ export default function Connections() {
{...realColumn.getHeaderProps()}
className={classnames('connections-th', {
resizing: realColumn.isResizing,
fixed: scrollX !== 0 && realColumn.id === Columns.Host
fixed: scrollX > 0 && realColumn.id === Columns.Host
})}
key={id}>
<div {...realColumn.getSortByToggleProps()}>