From a074c028c2654a222f597b0d64a69c7e6fd9cc15 Mon Sep 17 00:00:00 2001 From: Mihoub Date: Thu, 6 Jun 2024 17:36:07 +0200 Subject: [PATCH] fix(basket): set max height and overflow for basket --- .../api-operation-page/export-to-xlsx.tsx | 64 ++++++++++--------- src/pages/api-operation-page/styles.scss | 8 ++- 2 files changed, 39 insertions(+), 33 deletions(-) diff --git a/src/pages/api-operation-page/export-to-xlsx.tsx b/src/pages/api-operation-page/export-to-xlsx.tsx index 635049a..e393cb6 100644 --- a/src/pages/api-operation-page/export-to-xlsx.tsx +++ b/src/pages/api-operation-page/export-to-xlsx.tsx @@ -22,37 +22,39 @@ const ExcelExportButton = ({ dataList, setDataList }) => { return (
- - Liste des publications à exporter - - - +
+ + Liste des publications à exporter + +
    + {Array.isArray(dataList) && + dataList.map((item, index) => ( +
  • +
    +
    + + {item.publi_id} + + à lier à + + {item.fullName} + + +
    +
  • + ))} +
+ +
); }; diff --git a/src/pages/api-operation-page/styles.scss b/src/pages/api-operation-page/styles.scss index 259c652..f03eb07 100644 --- a/src/pages/api-operation-page/styles.scss +++ b/src/pages/api-operation-page/styles.scss @@ -22,19 +22,23 @@ .basket { position: fixed; right: 0; - top: 0; + top: 50px; padding: 10px; display: flex; justify-content: center; align-items: center; flex-direction: column; - margin: 20px; + margin: 0 20px 20px 20px; z-index: 1000; background-color: white; border-radius: 20px; border: 2px solid black; +} + +.basket-content { max-height: 500px; overflow-y: auto; + width: 100%; } .basket-item { display: flex;