diff --git a/src/components/ItemTree/index.jsx b/src/components/ItemTree/index.jsx index 1e0fbe3..17c5089 100644 --- a/src/components/ItemTree/index.jsx +++ b/src/components/ItemTree/index.jsx @@ -1,7 +1,7 @@ import React, {useEffect, useMemo, useState} from 'react'; import {Input, Tree} from 'antd'; import {FolderOutlined, FileMarkdownOutlined} from '@ant-design/icons'; - +import "./index.less" const {Search} = Input; import store from "../../redux/store"; import {clickFile} from "../../redux/clickFile_reducer"; diff --git a/src/components/ItemTree/index.less b/src/components/ItemTree/index.less new file mode 100644 index 0000000..ff8fcb3 --- /dev/null +++ b/src/components/ItemTree/index.less @@ -0,0 +1,10 @@ +@import '~antd/dist/antd.less'; +.ant-tree-node-content-wrapper { + display: inline-block; + width: 176px; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} + +