Explorar el Código

Fix Chart Card field style

afc163 hace 7 años
padre
commit
128e780c6a

+ 2 - 2
src/components/Charts/Field/index.js

@@ -4,8 +4,8 @@ import styles from './index.less';
 
 const Field = ({ label, value, ...rest }) => (
   <div className={styles.field} {...rest}>
-    <span>{label}</span>
-    <span>{value}</span>
+    <span className={styles.label}>{label}</span>
+    <span className={styles.number}>{value}</span>
   </div>
 );
 

+ 4 - 3
src/components/Charts/Field/index.less

@@ -5,12 +5,13 @@
   overflow: hidden;
   text-overflow: ellipsis;
   margin: 0;
-  span {
+  .label,
+  .number {
     font-size: @font-size-base;
     line-height: 22px;
   }
-  span:last-child {
-    margin-left: 8px;
+  .number {
     color: @heading-color;
+    margin-left: 8px;
   }
 }