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

modify class name and clean code

mayu morita 7 лет назад
Родитель
Сommit
af4c8491c9

+ 1 - 1
resource/js/components/PageEditor/Editor.js

@@ -215,7 +215,7 @@ export default class Editor extends AbstractEditor {
     const isMobile = this.props.isMobile;
     const isMobile = this.props.isMobile;
 
 
     return <React.Fragment>
     return <React.Fragment>
-      <div style={flexContainer} className="editor">
+      <div style={flexContainer} className="dropzone-container">
         <Dropzone
         <Dropzone
             ref="dropzone"
             ref="dropzone"
             disableClick
             disableClick

+ 2 - 3
resource/styles/scss/_on-edit.scss

@@ -183,7 +183,7 @@ body.on-edit {
       }
       }
     }
     }
 
 
-     .btn-open-dropzone {
+    .btn-open-dropzone {
       z-index: 2;
       z-index: 2;
       font-size: small;
       font-size: small;
       text-align: right;
       text-align: right;
@@ -192,16 +192,15 @@ body.on-edit {
       border: none;
       border: none;
       border-radius: 0;
       border-radius: 0;
       border-top: 1px dotted #ccc;
       border-top: 1px dotted #ccc;
-
       &:active {
       &:active {
         box-shadow: none;
         box-shadow: none;
       }
       }
-
       // hide if screen size is less than smartphone
       // hide if screen size is less than smartphone
       @media (max-width: $screen-xs) {
       @media (max-width: $screen-xs) {
         display: none;
         display: none;
       }
       }
     }
     }
+
   }
   }
   .page-editor-preview-container {
   .page-editor-preview-container {
   }
   }

+ 1 - 1
resource/styles/scss/dropzone.scss

@@ -1,4 +1,4 @@
- .editor {
+.dropzone-container {
   .overlay {
   .overlay {
     // layout
     // layout
     display: flex;
     display: flex;