Skip to content

Commit ab76dee

Browse files
committed
frontend: improve account-summary in scaled up mode
1 parent daed674 commit ab76dee

File tree

5 files changed

+12
-15
lines changed

5 files changed

+12
-15
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: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,33 +3,28 @@
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: 0.2rem solid var(--background-secondary);
1213
border-radius: 32px;
1314
color: var(--color-default);
14-
font-size: var(--size-default);
15+
font-size: min(var(--size-default), 18px);
1516
line-height: 1.75;
16-
margin-bottom: var(--spacing-half);
17-
margin-left: var(--spacing-half);
1817
}
1918

2019
.pillbuttongroup.medium button {
21-
padding: 0 calc(var(--spacing-default) * .75);
20+
padding: 0 12px;
2221
}
2322

2423
.pillbuttongroup.large button {
2524
font-size: calc(var(--size-default) + 1px);
2625
padding: 2px calc(var(--spacing-default) * 1.5);
2726
}
2827

29-
.pillbuttongroup button:first-child {
30-
margin-left: 0;
31-
}
32-
3328
.pillbuttongroup button:hover:not([disabled]) {
3429
cursor: pointer;
3530
}
@@ -63,7 +58,7 @@
6358

6459
@media (max-width: 768px) {
6560
.pillbuttongroup.lg button {
66-
font-size: calc(var(--size-default));
61+
font-size: var(--size-default);
6762
padding: 2px calc(var(--spacing-default) * 1.25);
6863
}
6964
}

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
display: flex;
2323
flex-wrap: wrap;
2424
margin-bottom: var(--spacing-half);
25-
min-height: 68px;
25+
min-height: 6.8rem;
2626
}
2727

2828
.summary {
@@ -82,7 +82,7 @@
8282
}
8383

8484
.totalValue {
85-
font-size: 3.2rem;
85+
font-size: min(3.2rem, var(--header-default-font-size));
8686
display: flex;
8787
align-items: flex-end;
8888
}
@@ -91,7 +91,7 @@
9191
color: var(--color-secondary);
9292
display: inline-block;
9393
margin-bottom: 3px;
94-
font-size: 2.2rem;
94+
font-size: min(2.2rem, 1.5rem);
9595
padding: 0 4px;
9696
}
9797

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

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

22
.arrow img {
3+
height: 2rem;
34
margin-right: 4px;
45
vertical-align: text-bottom;
6+
width: 2rem;
57
}
68

79
.up {

0 commit comments

Comments
 (0)