enhance(file):调整文件列表的文字样式。
This commit is contained in:
parent
a80e8eb74f
commit
0685e7f4e1
@ -1,5 +1,5 @@
|
|||||||
//@ts-nocheck
|
//@ts-nocheck
|
||||||
import { Box, Center, Text } from '@mantine/core';
|
import { Box, Center, Text, Tooltip } from '@mantine/core';
|
||||||
import EventEmitter from 'events';
|
import EventEmitter from 'events';
|
||||||
import { head, includes, indexOf, isEmpty, length, mergeLeft, not, pluck } from 'ramda';
|
import { head, includes, indexOf, isEmpty, length, mergeLeft, not, pluck } from 'ramda';
|
||||||
import { FC, useCallback, useContext, useLayoutEffect, useMemo, useRef } from 'react';
|
import { FC, useCallback, useContext, useLayoutEffect, useMemo, useRef } from 'react';
|
||||||
@ -54,7 +54,9 @@ export const FileList: FC = () => {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
{files[index].filename}
|
<Tooltip label={files[index].filename}>
|
||||||
|
<Text truncate>{files[index].filename}</Text>
|
||||||
|
</Tooltip>
|
||||||
</Box>
|
</Box>
|
||||||
)}
|
)}
|
||||||
</FixedSizeList>
|
</FixedSizeList>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user