修复表格样式

This commit is contained in:
hanhh
2021-10-16 10:53:14 +08:00
parent 6fa8a678bf
commit 87027f8a8c
4 changed files with 15 additions and 10 deletions
+4 -2
View File
@@ -366,7 +366,8 @@ const Env = ({ headerStyle, isPhone, theme }: any) => {
setTimeout(() => {
if (selectedRowIds.length === 0 || selectedIds.length === 0) {
setTableScrollHeight(getTableScroll({ extraHeight: 40 }));
const offset = isPhone ? 40 : 0;
setTableScrollHeight(getTableScroll({ extraHeight: 127 }) - offset);
}
});
};
@@ -435,7 +436,8 @@ const Env = ({ headerStyle, isPhone, theme }: any) => {
}, [searchText]);
useEffect(() => {
setTableScrollHeight(getTableScroll({ extraHeight: 40 }));
const offset = isPhone ? 40 : 0;
setTableScrollHeight(getTableScroll({ extraHeight: 127 }) - offset);
}, []);
return (