diff --git a/src/components/AddPartnerClient.js b/src/components/AddPartnerClient.js index e42a1ce..cfc9ebf 100644 --- a/src/components/AddPartnerClient.js +++ b/src/components/AddPartnerClient.js @@ -5547,12 +5547,12 @@ const AddParnerClient = (props) => {
diff --git a/src/components/Document_Affichage_Grid.js b/src/components/Document_Affichage_Grid.js index 5ccdf3a..91c2789 100644 --- a/src/components/Document_Affichage_Grid.js +++ b/src/components/Document_Affichage_Grid.js @@ -83,13 +83,6 @@ const Document_Affichage_Grid = (props) => { useEffect(() => { - - - window.scrollTo({ - top: 0, - behavior: "smooth", - }); - }, [props.apprenant_id]) function print_document_pdf(doc_id, file_extention, file_business_object) { @@ -245,33 +238,34 @@ const Document_Affichage_Grid = (props) => {
-
+
{props.list_document && props.list_document.map((document) => ( -
-
-
-
{JSON.parse(document).file_business_object}
-
Crée le {String(JSON.parse(document).creation_date).substring(0, 10)}
-
{ - preview_document_pdf(JSON.parse(document)._id, JSON.parse(document).file_extention, JSON.parse(document).file_business_object); - setselected_doc_name(JSON.parse(document).file_business_object); - setDialog_Preview_Doc_open(true); - }}> - -
-
{ - print_document_pdf(JSON.parse(document)._id, JSON.parse(document).file_extention, JSON.parse(document).file_business_object); - setselected_doc_name(JSON.parse(document).file_business_object); - }}> - -
+
+
+
{JSON.parse(document).file_business_object}
+
Créé le {String(JSON.parse(document).creation_date).substring(0, 10)}
+
{ + preview_document_pdf(JSON.parse(document)._id, JSON.parse(document).file_extention, JSON.parse(document).file_business_object); + setselected_doc_name(JSON.parse(document).file_business_object); + setDialog_Preview_Doc_open(true); + }}> + +
+
{ + print_document_pdf(JSON.parse(document)._id, JSON.parse(document).file_extention, JSON.parse(document).file_business_object); + setselected_doc_name(JSON.parse(document).file_business_object); + + }}> +
+ ))} diff --git a/src/components/Modules_Mes_Documents.js b/src/components/Modules_Mes_Documents.js index f9fa3cb..e76a8f8 100644 --- a/src/components/Modules_Mes_Documents.js +++ b/src/components/Modules_Mes_Documents.js @@ -1928,7 +1928,7 @@ const Modules_Mes_Documents = (props) => {
} - {affichage_doc && String(affichage_doc) === "grid" &&
+ {affichage_doc && String(affichage_doc) === "grid" &&
}
diff --git a/src/styles/components/_modules_mes_documents.scss b/src/styles/components/_modules_mes_documents.scss index fb8c67d..46ff3ed 100644 --- a/src/styles/components/_modules_mes_documents.scss +++ b/src/styles/components/_modules_mes_documents.scss @@ -2451,7 +2451,7 @@ /* Grille de fichiers */ .file-grid { flex: 1; - display: grid; + display: flex; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; padding: 1.5rem; @@ -2459,6 +2459,8 @@ background-color: #e0e0e0; color: #e0e0e0; overflow: hidden; + justify-content: center; + } .file-card { @@ -2469,6 +2471,7 @@ text-align: center; transition: transform 0.2s, box-shadow 0.2s; min-height: 10rem; + width: 13rem; } .file-card:hover {