Преглед изворни кода

Merge pull request #8669 from hihuangwei/patch-5

修复小屏幕下 头像变形
kaoding пре 4 година
родитељ
комит
d856c71f2a
1 измењених фајлова са 22 додато и 0 уклоњено
  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: 0;
+      }
+    }
+    .search {
+      display: none;
+    }
+  }
+}