Skip to content

Commit c6bfd27

Browse files
committed
frontend: improve bitsurance in responsive mode
1 parent cd37a0e commit c6bfd27

File tree

3 files changed

+28
-20
lines changed

3 files changed

+28
-20
lines changed

frontends/web/src/routes/account/components/insuredtag.module.css

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
.insured {
2-
padding: 4px 10px;
3-
border-radius: var(--space-half);
4-
border: 1px solid;
5-
font-size: var(--size-smaller);
6-
line-height: 14px;
7-
background: var(--color-palegreen);
8-
border-color: var(--color-lightgreen);
9-
color: var(--color-darkgreen);
10-
margin: 0px 10px;
11-
text-decoration: none;
12-
white-space: nowrap;
13-
max-height: 24px;
2+
background: var(--color-palegreen);
3+
border-radius: var(--space-half);
4+
border: 1px solid;
5+
border-color: var(--color-lightgreen);
6+
color: var(--color-darkgreen);
7+
font-size: var(--size-smaller);
8+
margin: 0px 10px;
9+
max-height: 2.4rem;
10+
padding: .4rem 10px;
11+
text-decoration: none;
12+
white-space: nowrap;
1413
}
1514

1615
.insured div {

frontends/web/src/routes/bitsurance/dashboard.module.css

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
.button {
1818
font-size: var(--size-default);
19-
height: calc(var(--space-default) + var(--space-quarter));
2019
padding: 0 24px;
2120
}
2221

@@ -26,6 +25,16 @@
2625
margin-right: var(--space-quarter);
2726
}
2827

28+
.externalLink {
29+
align-items: baseline;
30+
display: flex;
31+
}
32+
33+
.externalLink img {
34+
max-height: var(--size-default);
35+
max-width: var(--size-default);
36+
}
37+
2938
.coverageContainer {
3039
margin: var(--space-half) 0;
3140
}

frontends/web/src/routes/bitsurance/dashboard.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,16 @@ type TInsurancesByCode = {
5050
const AccountStatusIcon = ({ status }: TAccountStatusIconProps) => {
5151
switch (status) {
5252
case 'active':
53-
return <GreenDot width={14} height={20} />;
53+
return <GreenDot width={14}/>;
5454
case 'processing':
5555
case 'waitpayment':
56-
return <YellowDot width={14} height={20} />;
56+
return <YellowDot width={14}/>;
5757
case 'refused':
58-
return <RedDot width={14} height={20} />;
58+
return <RedDot width={14}/>;
5959
case 'inactive':
60-
return <OrangeDot width={14} height={20} />;
60+
return <OrangeDot width={14}/>;
6161
case 'canceled':
62-
return <RedDot width={14} height={20} />;
62+
return <RedDot width={14}/>;
6363
}
6464
};
6565

@@ -200,8 +200,8 @@ export const BitsuranceDashboard = ({ accounts }: TProps) => {
200200
className={`${style.text || ''} ${style.link || ''} m-top-quarter-on-small`}
201201
href={insurance.details.support}
202202
>
203-
<div className="flex">
204-
<ExternalLink width={16} />
203+
<div className={style.externalLink}>
204+
<ExternalLink />
205205
<span className="m-left-quarter">
206206
{t('bitsurance.dashboard.supportLink')}
207207
</span>

0 commit comments

Comments
 (0)