Skip to content

Commit 7993ad0

Browse files
further fast withdrawal styling adjustments
1 parent c639d0e commit 7993ad0

File tree

2 files changed

+23
-17
lines changed

2 files changed

+23
-17
lines changed

src/components/FastWithdrawalModal.js

+7-4
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
import { useState } from 'react';
3131
import { useDispatch, useSelector } from 'react-redux';
3232
import { hideFastWithdrawalModal } from '../store/fastWithdrawalModalSlice';
33-
import { X } from 'lucide-react';
33+
import { X, Clipboard } from 'lucide-react';
3434
import styles from './FastWithdrawalModal.module.css';
3535

3636
const FastWithdrawalModal = () => {
@@ -176,8 +176,9 @@ const FastWithdrawalModal = () => {
176176
type="button"
177177
onClick={() => handlePaste(setAmount)}
178178
className={styles.pasteButton}
179+
title="Paste from clipboard"
179180
>
180-
Paste
181+
<Clipboard size={18} />
181182
</button>
182183
</div>
183184
</div>
@@ -195,8 +196,9 @@ const FastWithdrawalModal = () => {
195196
type="button"
196197
onClick={() => handlePaste(setAddress)}
197198
className={styles.pasteButton}
199+
title="Paste from clipboard"
198200
>
199-
Paste
201+
<Clipboard size={18} />
200202
</button>
201203
</div>
202204
</div>
@@ -291,8 +293,9 @@ const FastWithdrawalModal = () => {
291293
type="button"
292294
onClick={() => handlePaste(setPaymentTxid)}
293295
className={styles.pasteButton}
296+
title="Paste from clipboard"
294297
>
295-
Paste
298+
<Clipboard size={18} />
296299
</button>
297300
</div>
298301
</div>

src/components/FastWithdrawalModal.module.css

+16-13
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,15 @@
7979
.inputWithPaste {
8080
display: flex;
8181
gap: 8px;
82+
align-items: stretch;
8283
}
8384

8485
.inputWithPaste .input {
8586
flex: 1;
8687
}
8788

8889
.input {
90+
height: 42px;
8991
width: 100%;
9092
padding: 10px 12px;
9193
box-sizing: border-box;
@@ -168,23 +170,24 @@ select.input {
168170
}
169171

170172
.pasteButton {
171-
padding: 10px;
172-
background-color: var(--download-btn);
173-
color: white;
173+
background: none;
174174
border: none;
175-
border-radius: 4px;
176175
cursor: pointer;
177-
font-weight: 600;
178-
font-size: 0.9rem;
179-
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
180-
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
181-
sans-serif;
182-
transition: background-color 0.2s ease, opacity 0.2s ease;
183-
text-align: center;
176+
padding: 8px;
177+
width: 36px;
178+
height: 36px;
179+
border-radius: 4px;
180+
display: flex;
181+
align-items: center;
182+
justify-content: center;
183+
transition: background-color 0.3s ease;
184+
color: var(--text-color);
185+
opacity: 0.7;
184186
}
185187

186-
.pasteButton:hover:not(:disabled) {
187-
background-color: var(--download-btn-hover);
188+
.pasteButton:hover {
189+
background-color: rgba(128, 128, 128, 0.1);
190+
opacity: 1;
188191
}
189192

190193
.paymentSection {

0 commit comments

Comments
 (0)