From d4e5208115f24179259ec3522b36ab8125c56e17 Mon Sep 17 00:00:00 2001 From: gopienkonikita Date: Thu, 3 Dec 2020 18:00:16 +0300 Subject: [PATCH 1/5] Web: Components: removed margin-top from row-container --- web/ASC.Web.Components/src/components/row-container/index.js | 1 - 1 file changed, 1 deletion(-) diff --git a/web/ASC.Web.Components/src/components/row-container/index.js b/web/ASC.Web.Components/src/components/row-container/index.js index 7e0b7aae69..8ee2f58a36 100644 --- a/web/ASC.Web.Components/src/components/row-container/index.js +++ b/web/ASC.Web.Components/src/components/row-container/index.js @@ -15,7 +15,6 @@ const StyledRowContainer = styled.div` : "100%" : "auto"}; position: relative; - margin-top:-18px; `; class RowContainer extends React.PureComponent { From a39192ff21b7d7967cffd1e998a6ebda0c54cc93 Mon Sep 17 00:00:00 2001 From: gopienkonikita Date: Thu, 3 Dec 2020 18:03:05 +0300 Subject: [PATCH 2/5] Web: Common: added new containers styles, added classNames to people and files containers --- .../Client/src/components/pages/Home/Section/Body/index.js | 6 +++++- .../Client/src/components/pages/Home/Section/Body/index.js | 5 ++++- .../components/PageLayout/sub-components/section-body.js | 5 +++++ 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/products/ASC.Files/Client/src/components/pages/Home/Section/Body/index.js b/products/ASC.Files/Client/src/components/pages/Home/Section/Body/index.js index 0b7789c39c..a501a61cf2 100644 --- a/products/ASC.Files/Client/src/components/pages/Home/Section/Body/index.js +++ b/products/ASC.Files/Client/src/components/pages/Home/Section/Body/index.js @@ -1686,7 +1686,11 @@ class SectionBodyContent extends React.Component { ) : ( {(context) => ( - + {items.map((item) => { const { checked, isFolder, value, contextOptions } = item; const sectionWidth = context.sectionWidth; diff --git a/products/ASC.People/Client/src/components/pages/Home/Section/Body/index.js b/products/ASC.People/Client/src/components/pages/Home/Section/Body/index.js index 73cbc56b3d..7b325feb7f 100644 --- a/products/ASC.People/Client/src/components/pages/Home/Section/Body/index.js +++ b/products/ASC.People/Client/src/components/pages/Home/Section/Body/index.js @@ -392,7 +392,10 @@ class SectionBodyContent extends React.PureComponent { <> {(context) => ( - + {peopleList.map((man) => { const { checked, diff --git a/web/ASC.Web.Common/src/components/PageLayout/sub-components/section-body.js b/web/ASC.Web.Common/src/components/PageLayout/sub-components/section-body.js index 09eaae472f..b2c92cf4bd 100644 --- a/web/ASC.Web.Common/src/components/PageLayout/sub-components/section-body.js +++ b/web/ASC.Web.Common/src/components/PageLayout/sub-components/section-body.js @@ -26,6 +26,11 @@ const commonStyles = css` flex-direction: column; min-height: 100%; } + + .people-row-container, + .files-row-container { + margin-top: -22px; + } } `; From b5807c695d40c51f0839a2f7e9338d204e09632f Mon Sep 17 00:00:00 2001 From: gopienkonikita Date: Thu, 3 Dec 2020 18:05:58 +0300 Subject: [PATCH 3/5] Web: Files: refactoring panels styles --- .../components/panels/NewFilesPanel/index.js | 10 +++- .../components/panels/SharingPanel/index.js | 12 ++-- .../src/components/panels/StyledPanels.js | 55 ++++++++----------- 3 files changed, 35 insertions(+), 42 deletions(-) diff --git a/products/ASC.Files/Client/src/components/panels/NewFilesPanel/index.js b/products/ASC.Files/Client/src/components/panels/NewFilesPanel/index.js index 17552fe4f4..6565ea986b 100644 --- a/products/ASC.Files/Client/src/components/panels/NewFilesPanel/index.js +++ b/products/ASC.Files/Client/src/components/panels/NewFilesPanel/index.js @@ -236,13 +236,17 @@ class NewFilesPanelComponent extends React.Component {