Web: Files: Fix empty second line of FileRowContent on third-party folders
This commit is contained in:
parent
fa9316807c
commit
080cde2888
@ -3,7 +3,7 @@ import { inject, observer } from "mobx-react";
|
||||
import { withRouter } from "react-router";
|
||||
import { withTranslation } from "react-i18next";
|
||||
import styled from "styled-components";
|
||||
import { isMobile, isTablet } from "react-device-detect";
|
||||
import { isMobile, isTablet, isMobileOnly } from "react-device-detect";
|
||||
|
||||
import Link from "@appserver/components/link";
|
||||
import Text from "@appserver/components/text";
|
||||
@ -121,32 +121,34 @@ const FilesRowContent = ({
|
||||
{badgesComponent}
|
||||
{quickButtons}
|
||||
</div>
|
||||
{!!fileExst && (
|
||||
<Text
|
||||
containerMinWidth="200px"
|
||||
containerWidth="15%"
|
||||
fontSize="12px"
|
||||
fontWeight={400}
|
||||
// color={sideColor}
|
||||
className="row_update-text"
|
||||
>
|
||||
{updatedDate && updatedDate}
|
||||
</Text>
|
||||
)}
|
||||
|
||||
<Text
|
||||
containerMinWidth="90px"
|
||||
containerWidth="10%"
|
||||
as="div"
|
||||
className="row-content-text"
|
||||
containerMinWidth="200px"
|
||||
containerWidth="15%"
|
||||
fontSize="12px"
|
||||
fontWeight={400}
|
||||
title=""
|
||||
truncate={true}
|
||||
// color={sideColor}
|
||||
className="row_update-text"
|
||||
>
|
||||
{!fileExst && !contentLength && !providerKey
|
||||
? `${foldersCount} ${t("Folders")} | ${filesCount} ${t("Files")}`
|
||||
: ""}
|
||||
{updatedDate && updatedDate}
|
||||
</Text>
|
||||
|
||||
{!isMobileOnly && (
|
||||
<Text
|
||||
containerMinWidth="90px"
|
||||
containerWidth="10%"
|
||||
as="div"
|
||||
className="row-content-text"
|
||||
fontSize="12px"
|
||||
fontWeight={400}
|
||||
title=""
|
||||
truncate={true}
|
||||
>
|
||||
{!fileExst && !contentLength && !providerKey
|
||||
? `${foldersCount} ${t("Folders")} | ${filesCount} ${t("Files")}`
|
||||
: ""}
|
||||
</Text>
|
||||
)}
|
||||
</SimpleFilesRowContent>
|
||||
</>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user