Skip to content

Commit cb94245

Browse files
committed
fix(projects): in big screen has scroll bar
1 parent fb7583a commit cb94245

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/hooks/common/table.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,11 @@ export function useTableScroll(scrollX: number = 702) {
207207

208208
const size = useSize(tableWrapperRef);
209209

210+
const height = size?.height;
211+
const result = height && height < 435 ? height - 184 : undefined;
212+
210213
const scrollConfig = {
211-
y: size?.height ? size.height - 184 : 240,
214+
y: result,
212215
x: scrollX
213216
};
214217

0 commit comments

Comments
 (0)