diff --git a/sass/css/_shop.scss b/sass/css/_shop.scss index 8e008d3..e217d25 100644 --- a/sass/css/_shop.scss +++ b/sass/css/_shop.scss @@ -261,6 +261,29 @@ button { width: 20px; padding-bottom: 3px; } + .alert-info { + padding-bottom: 0; + } + } + + .overlayVariant { + min-width: 100px; + height: 150px; + overflow-y: scroll; + position: absolute; + display: flex; + align-items: start; + justify-content: center; + text-align: left; + background-color: white; + color: black; + flex-direction: column; + cursor: pointer; + + p { + font-size: .875rem; + margin: 0; + } } thead, tbody, tfoot { diff --git a/static/js/shop.jsx b/static/js/shop.jsx index d0dcff0..a62b4f7 100644 --- a/static/js/shop.jsx +++ b/static/js/shop.jsx @@ -6,9 +6,7 @@ import { createRoot } from "react-dom/client"; import PropTypes from "prop-types"; import { DragDropContext, Droppable, Draggable } from "react-beautiful-dnd"; import { v4 as uuidv4 } from 'uuid'; -import { CustomizeButton } from "./shop_components.jsx"; -import { OverlayTrigger } from "react-bootstrap"; - +import { CustomizeButton, CustomizeData } from "./shop_components.jsx";import { OverlayTrigger } from "react-bootstrap"; const data = window.shop_data; const itemsUnfoldedList = Array.from(data.columns.backlog.categories.map(groupId => groupId.itemIds).flat()); @@ -1422,7 +1420,7 @@ class OrderSumary extends React.PureComponent {
{summary.map((item, index) => { - let alert, warning, options; + let alert, warning, options, options_data; if (itemsData[index] && itemsData[index].warnings) { alert = itemsData[index]; @@ -1432,6 +1430,7 @@ class OrderSumary extends React.PureComponent { } } options = itemsData[index] && itemsData[index].options; + options_data = itemsData[index] && itemsData[index].options_data; return ({key}: {stringify(value)}
); + }))} +