From c28b1d0121bf1ad4355a27859ec7b86a4fff945d Mon Sep 17 00:00:00 2001 From: Ilya Oleshko Date: Fri, 30 Oct 2020 14:19:59 +0300 Subject: [PATCH] Web: Components : RowContent : Renamed width property, fixed usage --- .../Home/Section/Body/FilesRowContent.js | 40 +++++++++++-------- 1 file changed, 23 insertions(+), 17 deletions(-) diff --git a/products/ASC.Files/Client/src/components/pages/Home/Section/Body/FilesRowContent.js b/products/ASC.Files/Client/src/components/pages/Home/Section/Body/FilesRowContent.js index c2a0a4d9f2..aeea1d002b 100644 --- a/products/ASC.Files/Client/src/components/pages/Home/Section/Body/FilesRowContent.js +++ b/products/ASC.Files/Client/src/components/pages/Home/Section/Body/FilesRowContent.js @@ -70,14 +70,14 @@ const SimpleFilesRowContent = styled(RowContent)` align-items: center; } -.favorite { - cursor: pointer; -} + .favorite { + cursor: pointer; + } -.share-icon { - margin-top: -4px; - padding-right: 8px; -} + .share-icon { + margin-top: -4px; + padding-right: 8px; + } .row_update-text { overflow: hidden; @@ -152,7 +152,13 @@ class FilesRowContent extends React.PureComponent { }; createItem = (e) => { - const { createFile, createFolder, item, setIsLoading, openDocEditor } = this.props; + const { + createFile, + createFolder, + item, + setIsLoading, + openDocEditor, + } = this.props; const { itemTitle } = this.state; setIsLoading(true); @@ -218,7 +224,7 @@ class FilesRowContent extends React.PureComponent { canWebEdit, item, isTrashFolder, - openDocEditor + openDocEditor, } = this.props; const { id, fileExst, viewUrl } = item; @@ -397,11 +403,11 @@ class FilesRowContent extends React.PureComponent { fileAction, isTrashFolder, folders, - widthProp, isLoading, isMobile, canWebEdit, canConvert, + sectionWidth, } = this.props; const { itemTitle, @@ -465,7 +471,7 @@ class FilesRowContent extends React.PureComponent { /> )} )} - {(fileStatus === 32 && !isTrashFolder) && + {fileStatus === 32 && !isTrashFolder && ( - } + /> + )} {fileStatus === 1 && (