Skip to content

Commit 57452ed

Browse files
committed
frontend: improve account-summary in scaled up mode
1 parent 577d3a8 commit 57452ed

File tree

6 files changed

+22
-36
lines changed

6 files changed

+22
-36
lines changed

frontends/web/src/components/badge/badge.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
}
2020

2121
.badgeIcon {
22-
max-width: 10px;
22+
max-width: 1rem;
2323
}
2424

2525
.withChildren .badgeIcon {

frontends/web/src/components/keystore/connected-keystore.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export const ConnectedKeystore = ({
5353
<>
5454
{' '}
5555
<Badge
56-
icon={props => <USBSuccess {...props} />}
56+
icon={props => <USBSuccess style={{ width: '0.9rem', height: '0.9rem' }} {...props} />}
5757
title={t('device.keystoreConnected')}
5858
type="success">
5959
{connectedIconOnly ? undefined : t('device.keystoreConnected')}

frontends/web/src/components/pillbuttongroup/pillbuttongroup.module.css

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,27 @@
33
display: flex;
44
flex-wrap: wrap;
55
flex-grow: 1;
6+
gap: var(--spacing-half);
67
}
78

89
.pillbuttongroup button {
910
appearance: none;
1011
background: var(--background-secondary);
11-
border: 2px solid var(--background-secondary);
12-
border-radius: 32px;
12+
border: 0.1rem solid var(--background-secondary);
13+
border-radius: 36px;
1314
color: var(--color-default);
14-
font-size: var(--size-default);
15+
font-size: min(var(--size-default), 18px);
1516
line-height: 1.75;
1617
margin-bottom: var(--spacing-half);
17-
margin-left: var(--spacing-half);
1818
}
1919

2020
.pillbuttongroup.medium button {
21-
padding: 0 calc(var(--spacing-default) * .75);
21+
padding: 0 12px;
2222
}
2323

2424
.pillbuttongroup.large button {
25-
font-size: calc(var(--size-default) + 1px);
26-
padding: 2px calc(var(--spacing-default) * 1.5);
27-
}
28-
29-
.pillbuttongroup button:first-child {
30-
margin-left: 0;
25+
font-size: min(calc(var(--size-default) + 1px), 24px);
26+
padding: 2px 24px;
3127
}
3228

3329
.pillbuttongroup button:hover:not([disabled]) {
@@ -60,10 +56,3 @@
6056
border-color: var(--background-secondary);
6157
color: var(--color-disabled);
6258
}
63-
64-
@media (max-width: 768px) {
65-
.pillbuttongroup.lg button {
66-
font-size: calc(var(--size-default));
67-
padding: 2px calc(var(--spacing-default) * 1.25);
68-
}
69-
}

frontends/web/src/routes/account/summary/accountssummary.module.css

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,13 @@
101101
}
102102

103103
.coinName {
104+
align-items: center;
104105
display: flex;
105106
}
106107

107108
.coinName img {
108109
flex-shrink: 0;
109110
margin-right: var(--spacing-default);
110-
vertical-align: middle;
111111
}
112112

113113
.coinUnit {
@@ -188,13 +188,4 @@
188188
padding-bottom: var(--spacing-default);
189189
}
190190

191-
.coinName {
192-
position: relative;
193-
}
194-
195-
.coinName img {
196-
left: -32px;
197-
position: absolute;
198-
top: -3px;
199-
}
200191
}

frontends/web/src/routes/account/summary/chart.module.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,16 +82,16 @@
8282
}
8383

8484
.totalValue {
85-
font-size: 3.2rem;
86-
display: flex;
8785
align-items: flex-end;
86+
display: flex;
87+
font-size: min(3.2rem, 40px);
8888
}
8989

9090
.totalUnit {
9191
color: var(--color-secondary);
9292
display: inline-block;
93+
font-size: min(2rem, 25px);
9394
margin-bottom: 3px;
94-
font-size: 2.2rem;
9595
padding: 0 4px;
9696
}
9797

frontends/web/src/routes/account/summary/percentage-diff.module.css

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11

2+
.arrow {
3+
line-height: 1;
4+
vertical-align: text-bottom;
5+
}
6+
27
.arrow img {
8+
height: min(2rem, 25px);
39
margin-right: 4px;
4-
vertical-align: text-bottom;
10+
width: min(2rem, 25px);
511
}
612

713
.up {
@@ -13,10 +19,10 @@
1319
}
1420

1521
.diffValue {
16-
font-size: 1.9rem;
22+
font-size: min(2rem, 25px);
1723
}
1824

1925
.diffUnit {
20-
font-size: 1.6rem;
26+
font-size: min(1.6rem, 20px); /* var(--size-default); */
2127
padding: 0 4px;
2228
}

0 commit comments

Comments
 (0)