陈帅 пре 7 година
родитељ
комит
2b82f6b6a0
3 измењених фајлова са 6 додато и 2 уклоњено
  1. 0 1
      src/components/SettingDarwer/index.js
  2. 3 1
      src/components/SettingDarwer/index.less
  3. 3 0
      src/global.less

+ 0 - 1
src/components/SettingDarwer/index.js

@@ -116,7 +116,6 @@ class SettingDarwer extends PureComponent {
     const { collapse, silderTheme, themeColor, layout, colorWeak } = setting;
     return (
       <Drawer
-        firstEnter={true}
         visible={collapse}
         width={273}
         onClose={this.togglerContent}

+ 3 - 1
src/components/SettingDarwer/index.less

@@ -55,7 +55,9 @@
   width: 48px;
   height: 48px;
   right: 273px;
-  padding: 14px 14px;
+  display: flex;
+  justify-content: center;
+  align-items: center;
   cursor: pointer;
   pointer-events: auto;
   z-index: 0;

+ 3 - 0
src/global.less

@@ -36,4 +36,7 @@ ol {
   body .ant-drawer .ant-drawer-content {
     opacity: 1;
   }
+  body .anticon svg {
+    display: block;
+  }
 }