Просмотр исходного кода

Merge branch 'feat/transplant-tabs-to-modal-for-master-merge' into design-fix-pagination-position

zahmis 5 лет назад
Родитель
Сommit
c9b076a931

+ 2 - 1
src/client/js/components/PageAccessoriesModal.jsx

@@ -102,7 +102,8 @@ const PageAccessoriesModal = (props) => {
   return (
     <React.Fragment>
       <Modal size="xl" isOpen={props.isOpen} toggle={closeModalHandler} className="grw-page-accessories-modal">
-        <ModalBody>
+        {/* [TODO: insert a modal header and move nav tabs there  by gw-3890] */}
+        <ModalBody className="overflow-auto grw-modal-body-style">
           <Nav className="nav-title" id="nav-title">
             {Object.entries(navTabMapping).map(([key, value]) => {
               return (

+ 10 - 0
src/client/styles/scss/_page_accessaries_modal.scss

@@ -4,4 +4,14 @@
     height: 20px;
     margin-right: 5px;
   }
+
+  .grw-modal-body-style {
+    max-height: calc(100vh - 100px);
+  }
+}
+
+// revision-history
+// to stay d2h-code-side-line-number in the revision history diff area
+.d2h-wrapper {
+  position: relative;
 }