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

success to show scrol not using d2h-code-side-linenumver

kaoritokashiki 5 лет назад
Родитель
Сommit
0a46b6cad5

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

@@ -155,9 +155,7 @@ const PageAccessoriesModal = (props) => {
               {pageAccessoriesContainer.state.activeComponents.has('timeline') && <PageTimeline /> }
             </TabPane>
             <TabPane tabId="page-history">
-              <div className="overflow-auto">
-                {pageAccessoriesContainer.state.activeComponents.has('page-history') && <PageHistory /> }
-              </div>
+              {pageAccessoriesContainer.state.activeComponents.has('page-history') && <PageHistory /> }
             </TabPane>
             <TabPane tabId="attachment" className="p-4">
               {pageAccessoriesContainer.state.activeComponents.has('attachment') && <PageAttachment />}

+ 4 - 5
src/client/styles/scss/_page_accessaries_modal.scss

@@ -9,10 +9,9 @@
     max-width: 1140px;
     max-height: 595px;
   }
+}
 
-  // revision-history diff
-  .d2h-code-side-linenumber {
-    position: static;
-    display: table-cell;
-  }
+// revision-history diff
+.d2h-wrapper {
+  position: relative;
 }