diff --git a/tdrive/frontend/src/app/views/client/body/drive/documents/common.tsx b/tdrive/frontend/src/app/views/client/body/drive/documents/common.tsx index efe0ed11..180fd528 100644 --- a/tdrive/frontend/src/app/views/client/body/drive/documents/common.tsx +++ b/tdrive/frontend/src/app/views/client/body/drive/documents/common.tsx @@ -33,7 +33,7 @@ export const CheckableIcon = ({
{show && (
- +
)} {!show &&
{fallback}
} diff --git a/tdrive/frontend/src/app/views/client/body/drive/modals/create/index.tsx b/tdrive/frontend/src/app/views/client/body/drive/modals/create/index.tsx index f8bbac2f..34e1c722 100644 --- a/tdrive/frontend/src/app/views/client/body/drive/modals/create/index.tsx +++ b/tdrive/frontend/src/app/views/client/body/drive/modals/create/index.tsx @@ -135,7 +135,7 @@ export const CreateModal = ({ onClick={() => addFromUrl(app.emptyFile.url, app.emptyFile.filename || app.emptyFile.name) } - testClassId={app.emptyFile.name} + testClassId={app.emptyFile.name.replaceAll(' ' ,'-').toLocaleLowerCase()} /> ); })} diff --git a/tdrive/frontend/src/app/views/client/body/drive/modals/versions/index.tsx b/tdrive/frontend/src/app/views/client/body/drive/modals/versions/index.tsx index 75f62a5c..fe1cb11f 100644 --- a/tdrive/frontend/src/app/views/client/body/drive/modals/versions/index.tsx +++ b/tdrive/frontend/src/app/views/client/body/drive/modals/versions/index.tsx @@ -99,17 +99,18 @@ const VersionModalContent = ({ id }: { id: string }) => { className={ 'flex flex-row items-center border -mt-px px-4 py-3 cursor-pointer hover:bg-zinc-500 hover:bg-opacity-10 ' + (index === 0 ? 'rounded-t-md ' : '') + - (index === (versions || []).length - 1 ? 'rounded-b-md ' : '') + (index === (versions || []).length - 1 ? 'rounded-b-md ' : '') + + 'testid:version-row' } >
- {version.file_metadata.name} + {version.file_metadata.name}
- {formatDate(version.date_added || 0)} + {formatDate(version.date_added || 0)}
- {formatBytes(version.file_metadata.size || 0)} + {formatBytes(version.file_metadata.size || 0)}