Skip to content

Commit 930ea24

Browse files
committed
frontend: make settings related components responsive
1 parent dd2cafc commit 930ea24

File tree

9 files changed

+29
-15
lines changed

9 files changed

+29
-15
lines changed

frontends/web/src/components/actionable-item/actionable-item.module.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
.container {
2-
--size-default: 1.4rem;
32
align-items: center;
43
background-color: var(--background-secondary);
54
border: none;

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
}
2020

2121
.message img {
22-
margin-right: 4px;
23-
max-width: 30px;
22+
margin-right: var(--space-quarter);
23+
max-width: var(--size-header);
2424
}
2525

2626
.message p:last-child {

frontends/web/src/routes/account/add/add.module.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
.manageContainer {
2-
flex-basis: 490px;
2+
/* flex-basis: 490px; */
33
flex-shrink: 1;
44
margin-bottom: var(--header-height);
5-
min-height: 390px;
5+
min-height: 490px;
66
max-height: 100%;
77
}
88

frontends/web/src/routes/settings/components/appearance/activecurrenciesdropdown.module.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
}
1111

1212
.defaultLabel {
13-
font-size: var(--size-smaller);
13+
font-size: var(--size-small);
1414
margin: 0;
1515
text-transform: capitalize;
16+
word-break: keep-all;
1617
}

frontends/web/src/routes/settings/components/appearance/languageDropDownSetting.module.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
}
44

55
.container img {
6-
margin-right: var(--space-eight);
6+
width: var(--size-default);
7+
margin-right: var(--space-quarter);
78
}

frontends/web/src/routes/settings/components/settingsItem/settingsItem.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
.primaryText {
3434
color: var(--color-default);
35-
font-size: 1.6rem;
35+
font-size: var(--size-default);
3636
margin: 0;
3737
}
3838

frontends/web/src/routes/settings/manage-accounts.module.css

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
}
5959

6060
.coinLogo {
61+
display: block;
6162
position: relative;
6263
z-index: 2;
6364
}
@@ -83,20 +84,23 @@
8384
}
8485

8586
.toggleLabel {
86-
align-items: center;
87+
align-items: baseline;
8788
display: flex;
8889
justify-content: space-between;
8990
}
9091

9192
.toggleLabelText {
93+
align-items: baseline;
9294
color: var(--color-secondary);
95+
display: flex;
9396
}
9497

9598
.toggleLabelText img {
9699
color: var(--color-secondary);
97100
margin-right: var(--space-quarter);
98-
max-width: 18px;
99-
vertical-align: bottom;
101+
max-height: var(--size-default);
102+
height: auto;
103+
width: var(--size-default);
100104
}
101105

102106
.toggle {
@@ -150,7 +154,7 @@
150154
.token::before {
151155
background-color: #ddd;
152156
content: "";
153-
height: 22px;
157+
height: 4.2rem;
154158
left: 10px;
155159
position: absolute;
156160
top: -13px;
@@ -163,6 +167,13 @@
163167
top: -7px;
164168
}
165169

170+
.tokenIcon,
171+
.token img {
172+
background: var(--background-secondary);
173+
outline: 5px solid var(--background-secondary);
174+
position: relative;
175+
}
176+
166177
.token img:first-child {
167178
margin-right: 0;
168179
}

frontends/web/src/routes/settings/manage-accounts.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ export const ManageAccounts = ({ accounts, devices, hasAccounts }: Props) => {
186186
<span className="unit">({account.coinUnit})</span>
187187
</span>
188188
</div>
189-
<div className="flex flex-items-center">
189+
<div>
190190
{!account.active ? (
191191
<p className={`text-small ${style.disabledText || ''}`}>
192192
{t('generic.enabled_false')}
@@ -288,7 +288,9 @@ export const ManageAccounts = ({ accounts, devices, hasAccounts }: Props) => {
288288
htmlFor={currentlyEditedAccount.code}>
289289
<span className={style.toggleLabelText}>
290290
<EyeOpenedDark />
291-
{t('newSettings.appearance.enableAccount.title')}
291+
<span>
292+
{t('newSettings.appearance.enableAccount.title')}
293+
</span>
292294
</span>
293295
<Toggle
294296
checked={currentlyEditedAccount.active}

frontends/web/src/style/layout.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ button, textarea {
154154

155155
.tabs .tab {
156156
width: 50%;
157-
height: 52px;
157+
height: min(5.2rem, 100px);
158158
border: solid 1px var(--color-gray);
159159
transition: all .2s ease-out;
160160
}

0 commit comments

Comments
 (0)