diff --git a/.github/workflows/publish-frontend.yml b/.github/workflows/publish-frontend.yml index 8629f171..384290ea 100644 --- a/.github/workflows/publish-frontend.yml +++ b/.github/workflows/publish-frontend.yml @@ -22,7 +22,7 @@ jobs: strategy: matrix: - node-version: [14.x] + node-version: [16.x] steps: - uses: actions/checkout@v2 diff --git a/tdrive/frontend/src/app/views/client/body/drive/header-path.tsx b/tdrive/frontend/src/app/views/client/body/drive/header-path.tsx index 590fb6f2..0b5507dd 100644 --- a/tdrive/frontend/src/app/views/client/body/drive/header-path.tsx +++ b/tdrive/frontend/src/app/views/client/body/drive/header-path.tsx @@ -1,4 +1,3 @@ -import { Button } from '@atoms/button/button'; import { Title } from '@atoms/text'; import { DriveItem } from '@features/drive/types'; import { ChevronDownIcon } from '@heroicons/react/solid'; @@ -33,18 +32,48 @@ export const PathRender = ({ inTrash: boolean; onClick: (id: string) => void; }) => { + const pathLength = (path || []).reduce((acc, curr) => acc + curr.name.length, 0); return ( -