Explorar o código

修复小屏幕下 头像变形

https://github.com/ant-design/ant-design-pro/issues/8667
黄威 %!s(int64=4) %!d(string=hai) anos
pai
achega
7128e9d012
Modificáronse 1 ficheiros con 22 adicións e 0 borrados
  1. 22 0
      src/components/RightContent/index.less

+ 22 - 0
src/components/RightContent/index.less

@@ -60,3 +60,25 @@
     }
   }
 }
+
+@media only screen and (max-width: @screen-md) {
+  :global(.ant-divider-vertical) {
+    vertical-align: unset;
+  }
+  .name {
+    display: none;
+  }
+  .right {
+    position: absolute;
+    top: 0;
+    right: 12px;
+    .account {
+      .avatar {
+        margin-right: 3px;
+      }
+    }
+    .search {
+      display: none;
+    }
+  }
+}