Browse Source

adjust slack checkmark

yusuketk 7 years ago
parent
commit
4e7f6c7760

+ 7 - 11
resource/js/components/PageComment/CommentForm.js

@@ -71,10 +71,6 @@ export default class CommentForm extends React.Component {
     if (!this.props.pageId) {
       return ;
     }
-
-    // const layoutType = this.props.crowi.getConfig()['layoutType'];
-    // this.setState({isLayoutTypeGrowi: 'crowi-plus' === layoutType || 'growi' === layoutType});
-
     this.retrieveData();
   }
 
@@ -82,13 +78,13 @@ export default class CommentForm extends React.Component {
    * Load data of comments and store them in state
    */
   retrieveData() {
-    // get data (desc order array)
-    this.props.crowi.apiGet('/channel.get', {page_id: this.props.pageId})
-      .then(res => {
-        if (res.ok) {
-          this.setState({channel: res.channel});
-        }
-      });
+    // // get data (desc order array)
+    // this.props.crowi.apiGet('/channel.get', {page_id: this.props.pageId})
+    //   .then(res => {
+    //     if (res.ok) {
+    //       this.setState({channel: res.channel});
+    //     }
+    //   });
   }
 
   updateState(value) {

+ 2 - 1
resource/styles/scss/_comment_growi.scss

@@ -108,10 +108,11 @@
     // slack
     .input-group-slack {
       .input-group-addon {
-        padding: 4px 0px;
+        padding: 4px 4px;
         line-height: 1em;
         img, input {
           vertical-align: middle;
+          margin: 1px;
         }
       }
     }