Sfoglia il codice sorgente

Fix margin top style error of Description List following Description List (#3653)

Sean Bao 6 anni fa
parent
commit
8235142eb9
1 ha cambiato i file con 16 aggiunte e 0 eliminazioni
  1. 16 0
      src/components/DescriptionList/index.less

+ 16 - 0
src/components/DescriptionList/index.less

@@ -8,6 +8,14 @@
       overflow: hidden;
     }
   }
+  // fix margin top error of following descriptionList
+  & + & {
+    :global {
+      .ant-row {
+        margin-top: 16px;
+      }
+    }
+  }
 
   .title {
     margin-bottom: 16px;
@@ -47,6 +55,14 @@
         margin-bottom: -8px;
       }
     }
+    // fix margin top error of following descriptionList
+    & + .descriptionList {
+      :global {
+        .ant-row {
+          margin-top: 8px;
+        }
+      }
+    }
     .title {
       margin-bottom: 12px;
       color: @text-color;