From be79cad7d1d1d2cafa34de57204ad22741642b02 Mon Sep 17 00:00:00 2001 From: Audrey Magwili Date: Mon, 18 Nov 2024 15:37:38 -0800 Subject: [PATCH 1/2] update flex values for preview, delete, share --- src/components/Documents/DocumentsDesktop.jsx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/components/Documents/DocumentsDesktop.jsx b/src/components/Documents/DocumentsDesktop.jsx index ca60669b..218f7ecd 100644 --- a/src/components/Documents/DocumentsDesktop.jsx +++ b/src/components/Documents/DocumentsDesktop.jsx @@ -69,11 +69,11 @@ const DocumentsDesktop = ({ documents, handlers }) => { const location = useLocation(); const columnTitlesArray = [ - { field: 'Name', minWidth: 120, flex: 1, headerAlign: 'center', align: 'center' }, - { field: 'Type', minWidth: 120, flex: 1, headerAlign: 'center', align: 'center' }, - { field: 'Description', minWidth: 120, flex: 1, headerAlign: 'center', align: 'center' }, - { field: 'Upload Date', minWidth: 120, flex: 1, headerAlign: 'center', align: 'center' }, - { field: 'Expiration Date', minWidth: 120, flex: 1, headerAlign: 'center', align: 'center' }, + { field: 'Name', minWidth: 120, flex: 3, headerAlign: 'center', align: 'center' }, + { field: 'Type', minWidth: 120, flex: 2, headerAlign: 'center', align: 'center' }, + { field: 'Description', minWidth: 120, flex: 3, headerAlign: 'center', align: 'center' }, + { field: 'Upload Date', minWidth: 120, flex: 2, headerAlign: 'center', align: 'center' }, + { field: 'Expiration Date', minWidth: 120, flex: 2, headerAlign: 'center', align: 'center' }, { field: 'Preview', minWidth: 100, @@ -121,6 +121,7 @@ const DocumentsDesktop = ({ documents, handlers }) => { field: 'Delete', minWidth: 100, flex: 1, + flexShrink: 3, headerAlign: 'center', align: 'center', sortable: false, From d899149ec8001959bf83c63384778772e1ab8d0a Mon Sep 17 00:00:00 2001 From: Audrey Magwili Date: Mon, 18 Nov 2024 15:42:44 -0800 Subject: [PATCH 2/2] remove unused code --- src/components/Documents/DocumentsDesktop.jsx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/components/Documents/DocumentsDesktop.jsx b/src/components/Documents/DocumentsDesktop.jsx index 218f7ecd..2a276866 100644 --- a/src/components/Documents/DocumentsDesktop.jsx +++ b/src/components/Documents/DocumentsDesktop.jsx @@ -121,7 +121,6 @@ const DocumentsDesktop = ({ documents, handlers }) => { field: 'Delete', minWidth: 100, flex: 1, - flexShrink: 3, headerAlign: 'center', align: 'center', sortable: false,