fix(list):调整文件列表样式,使之可以列出文件列表的最后一项。
This commit is contained in:
parent
0eb69d777d
commit
ea19698036
|
@ -74,14 +74,13 @@ export const FileList: FC = () => {
|
||||||
return (
|
return (
|
||||||
<Box
|
<Box
|
||||||
w="100%"
|
w="100%"
|
||||||
h="100%"
|
|
||||||
pl={4}
|
pl={4}
|
||||||
sx={{ flexGrow: 1, overflowY: 'auto', contain: 'strict', overflowX: 'hidden' }}
|
sx={{ flexGrow: 1, overflowY: 'auto', contain: 'strict', overflowX: 'hidden' }}
|
||||||
ref={parentRef}
|
ref={parentRef}
|
||||||
>
|
>
|
||||||
{!isEmpty(files) && (
|
{!isEmpty(files) && (
|
||||||
<Virtuoso
|
<Virtuoso
|
||||||
style={{ height: parentHeight }}
|
style={{ height: parentHeight - 36 }}
|
||||||
totalCount={filesCount}
|
totalCount={filesCount}
|
||||||
ref={listRef}
|
ref={listRef}
|
||||||
itemContent={index => (
|
itemContent={index => (
|
||||||
|
|
Loading…
Reference in New Issue
Block a user