diff --git a/src/App.js b/src/App.js index a2efb0b..63f5281 100644 --- a/src/App.js +++ b/src/App.js @@ -555,7 +555,7 @@ function TableEditor(p) { }} value={String(dat[col.name])}/>)})} - :} + :<>} } diff --git a/src/TestPanel.js b/src/TestPanel.js index 8ce799c..5745768 100644 --- a/src/TestPanel.js +++ b/src/TestPanel.js @@ -121,25 +121,28 @@ function EditableClass(p){ } function PopupWindow(p) { + const [filter,setFilter] = useState("") + const [page,setPage] = useState(1) + return {p.setModalOpen(false)}} shouldFocusAfterRender={true} shouldCloseOnOverlayClick={true} shouldCloseOnEsc={true} className="modal" overlayClassName="modalOverlay"> -
-
-

{p.title}

-{p.showCloseButton&&
{p.setModalOpen(false)}}>
} -
- -
-
- -
-
-{p.filter&&} -
-
-{p.children} -
+
+
+

{p.title}

+ {p.showCloseButton&&
{p.setModalOpen(false)}}>
} +
+ +
+
+ +
+
+ {p.filter&&{setFilter(f.currentTarget.value)}} />} +
+
+ {p.children} +
} diff --git a/src/style.css b/src/style.css index 9e83a40..241827f 100644 --- a/src/style.css +++ b/src/style.css @@ -945,14 +945,6 @@ button{ .table-padding{ padding: 4px; } -.modal { - flex-grow: 1; - flex-basis: 200px; - max-width: 580px; - outline: 0; - height: 95vh; - margin: 0 10px; - } .modalOverlay { position: fixed; top: 0; @@ -960,11 +952,24 @@ button{ right: 0; bottom: 0; background: rgba(0,0,0,.9); - display: flex; - flex-flow: row wrap; - justify-content: center; + display: grid; + justify-items: stretch; + justify-content: stretch; + grid-template-columns: 10px auto 10px; + grid-template-rows: 10px auto 10px; + grid-template-areas: + ". . ." + ". main ." + ". . ."; } +.modal { + background-color: purple; + max-width: 580px; + outline: 0; + grid-area: main; + } .boxModal { + } .modalItemListContainer { overflow-y: auto;