mirror of
https://github.com/woodchen-ink/clash-and-dashboard.git
synced 2025-07-18 14:01:56 +08:00
Fix: scrollX < 0 should not add class
This commit is contained in:
parent
9ccd8e213a
commit
2a64df2e42
@ -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 (
|
||||
<div {...cell.getCellProps()} className={classname} key={cell.column.id}>
|
||||
|
Loading…
x
Reference in New Issue
Block a user