Skip to content

Commit

Permalink
fix(projects): in big screen has scroll bar
Browse files Browse the repository at this point in the history
  • Loading branch information
mufeng889 committed Sep 12, 2024
1 parent fb7583a commit cb94245
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/hooks/common/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,11 @@ export function useTableScroll(scrollX: number = 702) {

const size = useSize(tableWrapperRef);

const height = size?.height;
const result = height && height < 435 ? height - 184 : undefined;

const scrollConfig = {
y: size?.height ? size.height - 184 : 240,
y: result,
x: scrollX
};

Expand Down

0 comments on commit cb94245

Please sign in to comment.