Browse Source

clean code

jam411 3 years ago
parent
commit
0f8f0674bb

+ 0 - 1
packages/app/src/components/PageEditor/CodeMirrorEditor.jsx

@@ -1,7 +1,6 @@
 import React, { useCallback, memo } from 'react';
 
 import { createValidator } from '@growi/codemirror-textlint';
-import { ConsoleFormattedStream } from 'browser-bunyan';
 import { commands } from 'codemirror';
 import { JSHINT } from 'jshint';
 import * as loadCssSync from 'load-css-file';

+ 3 - 3
packages/app/src/components/PageEditor/HandsontableModal.jsx

@@ -335,9 +335,9 @@ export default class HandsontableModal extends React.PureComponent {
     const align = this.state.markdownTable.options.align;
     const hotInstance = this.hotTable.hotInstance;
 
-    if (hotInstance.isDestroyed === true) {
-      return;
-    }
+    // if (hotInstance.isDestroyed === true) {
+    //   return;
+    // }
 
     for (let i = 0; i < align.length; i++) {
       for (let j = 0; j < hotInstance.countRows(); j++) {

+ 0 - 39
packages/app/src/styles/_handsontable.scss

@@ -1,39 +0,0 @@
-// .grw-handsontable :global {
-//   .handsontable {
-//     position: relative;
-
-//     .handsontableInput{
-//       max-width: 290px !important;
-//     }
-
-//     td {
-//       word-break: break-all;
-//     }
-//   }
-// }
-
-// .handsontable-modal.grw-modal-expanded {
-//   // expand .hot-table-container (with flexbox)
-//   .hot-table-container {
-//     flex: 1;
-//   }
-// }
-
-// // Prevent handsontable/handsontable #2937 (Manual column resize does not work when handsontable is loaded inside Bootstrap 3.0 Modal)
-// // see https://github.com/handsontable/handsontable/issues/2937#issuecomment-287390111
-// .modal.in .modal-dialog.handsontable-modal {
-//   transform: none;
-
-//   .data-import-button {
-//     position: relative;
-//     padding-right: 35px;
-//     padding-left: 10px;
-
-//     i:before {
-//       position: absolute;
-//       top: 6px;
-//       right: 8px;
-//       font-size: 20px;
-//     }
-//   }
-// }