OSDN Git Service

add the receivers btn styles.
authorZhiting Lin <zlin035@uottawa.ca>
Sat, 29 Sep 2018 03:19:01 +0000 (11:19 +0800)
committerZhiting Lin <zlin035@uottawa.ca>
Sat, 29 Sep 2018 03:19:01 +0000 (11:19 +0800)
src/features/transactions/components/New/New.scss
src/features/transactions/components/New/NormalTransactionForm.jsx

index 093a65a..1566433 100644 (file)
   vertical-align: top;
   width: 150px;
 }
+
+.receiverBtn{
+  position: absolute;
+  right: 33px;
+  margin-top: 32px;
+  width: 25px;
+  height: 25px;
+  font-size: 22px;
+  line-height: 20px;
+  padding: 1px 5px 0px 5px;
+}
index 3ef5d3d..6f1199e 100644 (file)
@@ -219,8 +219,8 @@ class NormalTxForm extends React.Component {
                 }
 
                 {index===0 ?
-                  <a href='#' className='btn btn-sm ' onClick={this.addReceiverItem}>+</a> :
-                  <a href='#' className='btn btn-sm btn-danger' onClick={() => this.removeReceiverItem(index)}>-</a>
+                  <a href='#' className={styles.receiverBtn} onClick={this.addReceiverItem}>+</a> :
+                  <a href='#' className={`${styles.receiverBtn} text-danger`}onClick={() => this.removeReceiverItem(index)}>-</a>
                 }
 
               </div>