Explorar o código

style: fix some detail

afc163 %!s(int64=8) %!d(string=hai) anos
pai
achega
8b75ed36cd

+ 2 - 1
src/components/StandardFormRow/index.less

@@ -13,7 +13,8 @@
       color: @text-color;
       margin-right: 0;
     }
-    .ant-form-item-label {
+    .ant-form-item-label,
+    .ant-form-item-control {
       padding: 0;
       line-height: 32px;
     }

+ 15 - 20
src/routes/List/Articles.js

@@ -171,26 +171,21 @@ export default class SearchList extends Component {
                   </FormItem>
                 </Col>
                 <Col xl={8} lg={10} md={12} sm={24} xs={24}>
-                  <FormItem
-                    {...formItemLayout}
-                    label="好评度"
-                  >
-                    {getFieldDecorator('rate', {})(
-                      <FormItem
-                        label="好评度"
-                      >
-                        {getFieldDecorator('rate', {})(
-                          <Select
-                            onChange={this.handleFormSubmit}
-                            placeholder="不限"
-                            style={{ maxWidth: 200, width: '100%' }}
-                          >
-                            <Option value="good">优秀</Option>
-                          </Select>
-                        )}
-                      </FormItem>
-                    )}
-                  </FormItem>
+                  {getFieldDecorator('rate', {})(
+                    <FormItem
+                      label="好评度"
+                    >
+                      {getFieldDecorator('rate', {})(
+                        <Select
+                          onChange={this.handleFormSubmit}
+                          placeholder="不限"
+                          style={{ maxWidth: 200, width: '100%' }}
+                        >
+                          <Option value="good">优秀</Option>
+                        </Select>
+                      )}
+                    </FormItem>
+                  )}
                 </Col>
               </Row>
             </StandardFormRow>

+ 1 - 1
src/routes/List/Projects.js

@@ -124,7 +124,7 @@ export default class CoverCardList extends PureComponent {
               grid
               last
             >
-              <Row gutter={24}>
+              <Row gutter={16}>
                 <Col lg={8} md={10} sm={10} xs={24}>
                   <FormItem
                     {...formItemLayout}

+ 3 - 0
src/routes/List/TableList.less

@@ -21,6 +21,9 @@
         line-height: 32px;
         padding-right: 8px;
       }
+      .ant-form-item-control {
+        line-height: 32px;
+      }
     }
     .ant-form-item-control-wrapper {
       flex: 1;