From 2a64df2e4253338d8451505192d78ba950273848 Mon Sep 17 00:00:00 2001 From: Dreamacro <8615343+Dreamacro@users.noreply.github.com> Date: Thu, 3 Dec 2020 22:23:40 +0800 Subject: [PATCH] Fix: scrollX < 0 should not add class --- src/containers/Connections/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/containers/Connections/index.tsx b/src/containers/Connections/index.tsx index 71cda8e..db35578 100644 --- a/src/containers/Connections/index.tsx +++ b/src/containers/Connections/index.tsx @@ -282,7 +282,7 @@ export default function Connections() { const classname = classnames( 'connections-block', { center: shouldCenter.has(cell.column.id), completed: row.original.completed }, - { fixed: scrollX !== 0 && cell.column.id === Columns.Host } + { fixed: scrollX > 0 && cell.column.id === Columns.Host } ) return (