diff --git a/tdrive/frontend/src/app/views/client/body/drive/documents/document-row.tsx b/tdrive/frontend/src/app/views/client/body/drive/documents/document-row.tsx
index 2bc65396..b1f140da 100644
--- a/tdrive/frontend/src/app/views/client/body/drive/documents/document-row.tsx
+++ b/tdrive/frontend/src/app/views/client/body/drive/documents/document-row.tsx
@@ -21,6 +21,7 @@ import Avatar from '../../../../../atoms/avatar';
import { PublicIcon } from '../components/public-icon';
import { CheckableIcon, DriveItemProps } from './common';
import { getDevice } from '../../../../../features/global/utils/device';
+import './style.scss';
import { useHistory } from 'react-router-dom';
import RouterServices from '@features/router/services/router-service';
import useRouteState from 'app/features/router/hooks/use-route-state';
@@ -119,14 +120,14 @@ export const DocumentRow = ({
/>
- {item.name}
+ {item.name}
{item?.access_info?.public?.level !== 'none' && (
)}
-
+
{formatBytes(item.size)}
diff --git a/tdrive/frontend/src/app/views/client/body/drive/documents/folder-row.tsx b/tdrive/frontend/src/app/views/client/body/drive/documents/folder-row.tsx
index 8c716e33..31888eb0 100644
--- a/tdrive/frontend/src/app/views/client/body/drive/documents/folder-row.tsx
+++ b/tdrive/frontend/src/app/views/client/body/drive/documents/folder-row.tsx
@@ -7,6 +7,7 @@ import { formatBytes } from '@features/drive/utils';
import { useState } from 'react';
import { PublicIcon } from '../components/public-icon';
import { CheckableIcon, DriveItemProps } from './common';
+import './style.scss';
export const FolderRow = ({
item,
@@ -45,14 +46,14 @@ export const FolderRow = ({
/>
- {item.name}
+ {item.name}
{item?.access_info?.public?.level !== 'none' && (
)}
-
+
{formatBytes(item.size)}
diff --git a/tdrive/frontend/src/app/views/client/body/drive/documents/style.scss b/tdrive/frontend/src/app/views/client/body/drive/documents/style.scss
new file mode 100644
index 00000000..6b139c98
--- /dev/null
+++ b/tdrive/frontend/src/app/views/client/body/drive/documents/style.scss
@@ -0,0 +1,7 @@
+.maxWidth100 {
+ max-width: 100px;
+}
+
+.minWidth80 {
+ min-width: 80;
+}
\ No newline at end of file
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 106af0dd..cc573078 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
@@ -25,6 +25,18 @@ export default ({
return
setParentId(id)} />;
};
+function cutFileName (name: any){
+ if (typeof name !== "undefined" ){
+ if (name.length >= 30){
+ return name.substring(0,30)+" ...";
+ } else {
+ return name;
+ }
+ } else {
+ return name;
+ }
+}
+
export const PathRender = ({
path,
onClick,
@@ -34,6 +46,7 @@ export const PathRender = ({
onClick: (id: string) => void;
}) => {
const pathLength = (path || []).reduce((acc, curr) => acc + curr.name.length, 0);
+
return (