Skip to content

Commit 43690b2

Browse files
authored
Merge pull request #1507 from sultanmyrza/feature-adjust-wallet-page-and-transfer-page-UI-for-screen-size-less-than-360px-with-media-query
Feature adjust wallet page and transfer page UI for screen size less than 360px with media query
2 parents c8b6fa5 + 94e5f82 commit 43690b2

File tree

4 files changed

+47
-5
lines changed

4 files changed

+47
-5
lines changed

src/app/features/wallets/transfer/transfer.page.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,11 @@ <h5>
9494
<ion-icon name="wallet"></ion-icon>
9595
</ion-col>
9696
<ion-col size="5" *ngrxLet="gasFee$ as gasFee">
97-
<h6>
97+
<h6 class="gas-fee-text">
9898
{{ t('wallets.gasFee') }}:
9999
{{ gasFee > 0 ? (gasFee | number: '1.2-2') : t('wallets.pending') }}
100100
</h6>
101-
<h4>
101+
<h4 class="wallet-total-text">
102102
{{ t('wallets.total') }} {{ totalCost$ | ngrxPush | currency }}
103103
</h4>
104104
</ion-col>

src/app/features/wallets/transfer/transfer.page.scss

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,24 @@ ion-card {
3232
margin-bottom: 0;
3333
}
3434

35+
h6.gas-fee-text {
36+
@media (max-width: 360px) {
37+
font-size: 14px;
38+
}
39+
}
40+
3541
h4 {
3642
margin-top: 2%;
3743
font-weight: bold;
3844
letter-spacing: 0.02em;
3945
}
4046

47+
h4.wallet-total-text {
48+
@media (max-width: 360px) {
49+
font-size: 14px;
50+
}
51+
}
52+
4153
#deposit-withdraw-btn-col {
4254
padding-left: 0;
4355
padding-right: 0;
@@ -53,6 +65,10 @@ ion-card {
5365
width: 80%;
5466

5567
--border-radius: 10px;
68+
69+
@media (max-width: 360px) {
70+
font-size: 12px;
71+
}
5672
}
5773
}
5874

@@ -73,6 +89,16 @@ ion-card {
7389
margin-top: 0;
7490
font-weight: bold;
7591
letter-spacing: 0.02em;
92+
93+
@media (max-width: 360px) {
94+
font-size: 16px;
95+
}
96+
}
97+
98+
h1 {
99+
@media (max-width: 360px) {
100+
font-size: 20px;
101+
}
76102
}
77103
}
78104

src/app/features/wallets/wallets.page.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,16 @@
1616
<ion-row>
1717
<ion-col size="8">
1818
<ion-text class="text-black">
19-
<h1>{{ totalBalance$ | ngrxPush | currency }} NUM</h1>
19+
<h1 class="balance-text">
20+
{{ totalBalance$ | ngrxPush | currency }} NUM
21+
</h1>
2022
</ion-text>
2123
</ion-col>
2224
<ion-col offset="0.3">
2325
<ion-row id="num-icon-row">
2426
<ion-img src="../../../assets/images/num-icon.svg"></ion-img>
2527
<ion-text class="text-black">
26-
<h3>NUM</h3>
28+
<h3 class="num-text">NUM</h3>
2729
</ion-text>
2830
</ion-row>
2931
</ion-col>

src/app/features/wallets/wallets.page.scss

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,32 @@ ion-card {
3333
margin-left: 12px;
3434
margin-right: 8px;
3535

36+
h1.balance-text {
37+
@media (max-width: 360px) {
38+
font-size: 20px;
39+
}
40+
}
41+
3642
#num-icon-row {
3743
ion-img {
3844
margin-top: 10px;
3945
width: 29px;
46+
47+
@media (max-width: 360px) {
48+
width: 20px;
49+
}
4050
}
4151

42-
h3 {
52+
h3.num-text {
4353
flex: none;
4454
order: 1;
4555
flex-grow: 0;
4656
margin-top: 21px;
4757
margin-left: 7px;
58+
59+
@media (max-width: 360px) {
60+
font-size: 20px;
61+
}
4862
}
4963
}
5064

0 commit comments

Comments
 (0)