Skip to content

Commit bee0d54

Browse files
committed
frontend: make recieve view responsive
1 parent cbe9e35 commit bee0d54

File tree

2 files changed

+16
-25
lines changed

2 files changed

+16
-25
lines changed

frontends/web/src/routes/account/receive/receive.module.css

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,21 +19,6 @@
1919
min-height: 260px;
2020
}
2121

22-
.arrowLeft,
23-
.arrowRight {
24-
width: 16px;
25-
position: relative;
26-
top: 3px;
27-
}
28-
29-
.arrowLeft {
30-
margin-right: 3px;
31-
}
32-
33-
.arrowRight {
34-
margin-left: 3px;
35-
}
36-
3722
.previous,
3823
.next {
3924
appearance: none;
@@ -46,6 +31,13 @@
4631
text-decoration: none;
4732
}
4833

34+
.previous img,
35+
.next img {
36+
display: block;
37+
height: min(2.4rem, 36px);
38+
width: min(2.4rem, 36px);
39+
}
40+
4941
.hide {
5042
position: absolute;
5143
top: 0;
@@ -62,11 +54,12 @@
6254
color: var(--color-secondary);
6355
cursor: pointer;
6456
display: inline-block;
57+
font-size: var(--size-small);
6558
text-align: center;
6659
text-decoration: underline;
6760
padding: var(--space-quarter);
6861
}
6962

7063
.messageContainer {
71-
margin-top: var(--spacing-default);
64+
margin-top: var(--spacing-half);
7265
}

frontends/web/src/routes/account/receive/receive.tsx

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,9 @@ const AddressTypeDialog = ({
7575
{t(`receive.scriptType.${scriptType}`)}
7676
</Radio>
7777
{scriptType === 'p2tr' && addressType === i && (
78-
<div className={style.messageContainer}>
79-
<Message type="warning">
80-
{t('receive.taprootWarning')}
81-
</Message>
82-
</div>
78+
<Message type="warning" className={style.messageContainer}>
79+
{t('receive.taprootWarning')}
80+
</Message>
8381
)}
8482
</div>
8583
))}
@@ -237,9 +235,9 @@ export const Receive = ({
237235
className={style.previous}
238236
onClick={previous}>
239237
{(verifying || activeIndex === 0) ? (
240-
<ArrowCirlceLeft height="24" width="24" />
238+
<ArrowCirlceLeft />
241239
) : (
242-
<ArrowCirlceLeftActive height="24" width="24" title={t('button.previous')} />
240+
<ArrowCirlceLeftActive title={t('button.previous')} />
243241
)}
244242
</button>
245243
)}
@@ -251,9 +249,9 @@ export const Receive = ({
251249
className={style.next}
252250
onClick={e => next(e, currentAddresses.length)}>
253251
{(verifying || activeIndex >= currentAddresses.length - 1) ? (
254-
<ArrowCirlceRight height="24" width="24" />
252+
<ArrowCirlceRight />
255253
) : (
256-
<ArrowCirlceRightActive height="24" width="24" title={t('button.next')} />
254+
<ArrowCirlceRightActive title={t('button.next')} />
257255
)}
258256
</button>
259257
)}

0 commit comments

Comments
 (0)