Skip to content

Commit d64fe39

Browse files
committed
frontend: make transaction-detail dialog reponsive
1 parent c181ab2 commit d64fe39

File tree

3 files changed

+27
-13
lines changed

3 files changed

+27
-13
lines changed

frontends/web/src/components/transactions/components/details.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
.editButton {
3434
background: none;
3535
border: none;
36-
height: 20px;
36+
min-height: 20px;
3737
margin-right: var(--space-half);
3838
padding: 0;
3939
-webkit-appearance: none;

frontends/web/src/components/transactions/components/tx-detail-dialog/tx-detail-dialog.module.css

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,19 @@
44

55
.label {
66
color: var(--color-default);
7-
font-size: 14px;
7+
font-size: var(--size-small);
88
font-weight: 600;
99
margin: 0;
1010
}
1111

12+
.nowrap {
13+
flex-shrink: 0;
14+
}
15+
1216
.row {
1317
align-items: center;
1418
display: flex;
19+
flex-wrap: wrap;
1520
justify-content: space-between;
1621
}
1722

@@ -28,7 +33,7 @@
2833
.detailAddress {
2934
padding: 0;
3035
margin: 0;
31-
height: 20px;
36+
height: 2rem;
3237
}
3338

3439
.container {
@@ -51,26 +56,26 @@
5156
}
5257

5358
.amount {
54-
font-size: 24px;
59+
font-size: var(--size-header);
5560
margin: var(--space-quarter) 0;
56-
font-weight: 600;
5761
}
5862

5963
.headerAmountUnit {
60-
font-size: 21px;
64+
font-size: var(--size-subheader);
6165
}
6266

6367
.headerFiatUnit {
64-
font-size: 16px;
68+
font-size: var(--size-small);
6569
}
6670

6771
.rowUnit {
68-
font-size: 13px;
72+
font-size: var(--size-small);
6973
}
7074

7175
.statusContainer {
7276
align-items: center;
7377
display: flex;
78+
flex-wrap: wrap;
7479
justify-content: space-between;
7580
margin-bottom: calc(var(--space-half) + var(--space-quarter));
7681
width: 100%;
@@ -92,7 +97,7 @@
9297
.amountFiat {
9398
align-items: center;
9499
display: flex;
95-
font-size: 18px;
100+
font-size: var(--size-subheader);
96101
margin-bottom: var(--space-quarter);
97102
}
98103

@@ -114,26 +119,28 @@
114119

115120
.note {
116121
margin: 0;
117-
height: 20px;
118122
width: 85%;
119123
}
120124

121125
.note input {
122126
border: none;
123-
height: 20px;
127+
height: auto;
128+
min-height: 20px;
124129
padding: 0;
125130
}
126131

127132
.noteContainer {
128133
align-items: center;
129134
display: flex;
130135
flex-direction: row;
136+
flex-wrap: wrap;
131137
justify-content: space-between;
132138
padding: 0;
133139
}
134140

135141
.unit {
136142
font-weight: 400;
143+
font-size: var(--size-small);
137144
color: var(--color-secondary);
138145
font-variant: normal;
139146
position: relative;
@@ -162,6 +169,10 @@
162169
text-decoration: none;
163170
}
164171

172+
.explorerLink img {
173+
max-height: var(--size-default);
174+
}
175+
165176
.addressOrTxIdContainer {
166177
display: flex;
167178
flex-direction: column;

frontends/web/src/components/transactions/components/tx-detail-dialog/tx-detail-dialog.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,10 @@ export const TxDetailsDialog = ({
155155

156156
{/* tx id */}
157157
<TxDetailRow>
158-
<p className={styles.label}>{t('transaction.explorer')}</p>
158+
<p className={`
159+
${styles.label || ''}
160+
${styles.nowrap || ''}
161+
`}>{t('transaction.explorer')}</p>
159162
<AddressOrTxId values={[transactionInfo.internalID]} />
160163
</TxDetailRow>
161164

@@ -167,7 +170,7 @@ export const TxDetailsDialog = ({
167170
className={styles.explorerLink}
168171
href={explorerURL + transactionInfo.txID}
169172
title={`${t('transaction.explorerTitle')}\n${explorerURL}${transactionInfo.txID}`}>
170-
<ExternalLink width={14} />
173+
<ExternalLink />
171174
{' '}
172175
{t('transaction.explorerTitle')}
173176
</A>

0 commit comments

Comments
 (0)