From b93441d1f2638c288fd7c61311c44982950f5f27 Mon Sep 17 00:00:00 2001 From: Vlada Gazizova <94864088+gazizova-vlada@users.noreply.github.com> Date: Thu, 1 Aug 2024 14:50:00 +0300 Subject: [PATCH] Client:Hiding badges__quickButtons. --- .../Section/Body/TableView/TableContainer.js | 7 +++ .../Section/Body/TableView/TableHeader.js | 56 +++++++++---------- .../TableView/sub-components/RecentRowData.js | 4 +- .../Body/TableView/sub-components/RowData.js | 14 ++++- .../table/sub-components/TableHeaderCell.tsx | 4 +- 5 files changed, 51 insertions(+), 34 deletions(-) diff --git a/packages/client/src/pages/Home/Section/Body/TableView/TableContainer.js b/packages/client/src/pages/Home/Section/Body/TableView/TableContainer.js index 6dbf73b5e7..e040836ea5 100644 --- a/packages/client/src/pages/Home/Section/Body/TableView/TableContainer.js +++ b/packages/client/src/pages/Home/Section/Body/TableView/TableContainer.js @@ -50,6 +50,13 @@ const contextCss = css` `; const StyledTableContainer = styled(TableContainer)` + .badges__quickButtons { + padding-left: 16px; + display: flex; + flex-grow: 2; + justify-content: flex-end; + } + .table-row-selected { .table-container_file-name-cell { ${fileNameCss} diff --git a/packages/client/src/pages/Home/Section/Body/TableView/TableHeader.js b/packages/client/src/pages/Home/Section/Body/TableView/TableHeader.js index 76b188ceb9..8a21277f30 100644 --- a/packages/client/src/pages/Home/Section/Body/TableView/TableHeader.js +++ b/packages/client/src/pages/Home/Section/Body/TableView/TableHeader.js @@ -109,13 +109,13 @@ class FilesTableHeader extends React.Component { onChange: this.onColumnChange, onClick: this.onRoomsFilter, }, - { - key: "QuickButtons", - title: "", - enable: this.props.roomColumnQuickButtonsIsEnabled, - defaultSize: 52, - resizable: false, - }, + // { + // key: "QuickButtons", + // title: "", + // enable: this.props.roomColumnQuickButtonsIsEnabled, + // defaultSize: 52, + // resizable: false, + // }, ]; showStorageInfo && @@ -199,13 +199,13 @@ class FilesTableHeader extends React.Component { // onClick: this.onFilter, onChange: this.onColumnChange, }, - { - key: "QuickButtons", - title: "", - enable: this.props.quickButtonsColumnIsEnabled, - defaultSize: 52, - resizable: false, - }, + // { + // key: "QuickButtons", + // title: "", + // enable: this.props.quickButtonsColumnIsEnabled, + // defaultSize: 52, + // resizable: false, + // }, ]; defaultColumns.push(...columns); } else if (isRecentTab) { @@ -278,13 +278,13 @@ class FilesTableHeader extends React.Component { // onClick: this.onFilter, onChange: this.onColumnChange, }, - { - key: "QuickButtons", - title: "", - enable: this.props.quickButtonsColumnIsEnabled, - defaultSize: 52, - resizable: false, - }, + // { + // key: "QuickButtons", + // title: "", + // enable: this.props.quickButtonsColumnIsEnabled, + // defaultSize: 52, + // resizable: false, + // }, ]; defaultColumns.push(...columns); } else { @@ -348,13 +348,13 @@ class FilesTableHeader extends React.Component { // onClick: this.onFilter, onChange: this.onColumnChange, }, - { - key: "QuickButtons", - title: "", - enable: this.props.quickButtonsColumnIsEnabled, - defaultSize: 52, - resizable: false, - }, + // { + // key: "QuickButtons", + // title: "", + // enable: this.props.quickButtonsColumnIsEnabled, + // defaultSize: 52, + // resizable: false, + // }, ]; defaultColumns.push(...columns); } diff --git a/packages/client/src/pages/Home/Section/Body/TableView/sub-components/RecentRowData.js b/packages/client/src/pages/Home/Section/Body/TableView/sub-components/RecentRowData.js index b8af6e6856..945c285056 100644 --- a/packages/client/src/pages/Home/Section/Body/TableView/sub-components/RecentRowData.js +++ b/packages/client/src/pages/Home/Section/Body/TableView/sub-components/RecentRowData.js @@ -213,7 +213,7 @@ const RecentRowDataComponent = (props) => { ) : (
)} - {quickButtonsColumnIsEnabled ? ( + {/* {quickButtonsColumnIsEnabled ? (