Browse Source

样式调整

xiaoct 7 years ago
parent
commit
ddace7958b

+ 1 - 1
src/components/chartDesigner/content.jsx

@@ -72,7 +72,7 @@ class ChartDesignerContent extends React.Component {
                     <Icon type= {`${this.state.collapsed?'right':'left'}`}
                     <Icon type= {`${this.state.collapsed?'right':'left'}`}
                         style={{
                         style={{
                             position: 'absolute',
                             position: 'absolute',
-                            right: this.state.collapsed?'-20px':'10px',
+                            right: this.state.collapsed?'-20px':'5px',
                             top: '10px',
                             top: '10px',
                             zIndex: 100
                             zIndex: 100
                         }} 
                         }} 

+ 6 - 0
src/components/chartDesigner/content.less

@@ -28,6 +28,12 @@
             }
             }
         }
         }
     }
     }
+    .sider-left-collapsed {
+        flex: 0 0 0px !important;
+        max-width: 0px !important;
+        min-width: 0px !important;
+        width: 0px !important;
+    }
     .ant-cascader-picker {
     .ant-cascader-picker {
         .anticon {
         .anticon {
             font-size: 12px;
             font-size: 12px;

+ 1 - 1
src/components/chartDesigner/sections/toolbar.jsx

@@ -103,7 +103,7 @@ class Toolbar extends React.Component {
         return (
         return (
             <div className='toolbar'>
             <div className='toolbar'>
                 <div className='filters'>
                 <div className='filters'>
-                    <h6 style={{ marginRight: 8, display: 'inline' }}>筛选:</h6>
+                    <h6 style={{ marginLeft: 10, marginRight: 8, display: 'inline' }}>筛选:</h6>
                     {tags.map(tag => (
                     {tags.map(tag => (
                         <Tag
                         <Tag
                             className={`filter-tag ${tag.using?'filter-tag-using':''}`}
                             className={`filter-tag ${tag.using?'filter-tag-using':''}`}