Skip to content

Commit d7a025f

Browse files
committed
fix tablet view
1 parent c23e977 commit d7a025f

File tree

3 files changed

+49
-14
lines changed

3 files changed

+49
-14
lines changed

src/shared/components/Settings/Account/Security/Modal/style.scss

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
.container {
1818
background: #fff;
1919
position: fixed;
20-
width: 1000px;
20+
max-width: 1000px;
2121
height: 752px;
2222
max-height: 99%;
2323
top: 50%;
@@ -31,13 +31,13 @@
3131
display: flex;
3232
flex-direction: column;
3333
align-items: flex-start;
34-
gap: 24px;
3534

3635
.header {
3736
display: flex;
3837
align-items: center;
3938
justify-content: space-between;
4039
width: 100%;
40+
margin-bottom: 24px;
4141

4242
.icon-wrapper {
4343
display: flex;
@@ -76,13 +76,15 @@
7676
width: 100%;
7777
display: flex;
7878
flex-direction: column;
79+
margin-bottom: 24px;
7980
}
8081

8182
.divider {
8283
width: 100%;
8384
min-height: 2px;
8485
background-color: #e9e9e9;
8586
border-radius: 1px;
87+
margin-bottom: 24px;
8688
}
8789

8890
.footer {
@@ -109,6 +111,14 @@
109111
border-radius: 50px;
110112
cursor: pointer;
111113

114+
&:focus {
115+
outline: none;
116+
}
117+
118+
&:focus-visible {
119+
outline: none;
120+
}
121+
112122
&.disabled {
113123
background: #f4f4f4;
114124
color: #767676;
@@ -134,6 +144,14 @@
134144
border-radius: 50px;
135145
cursor: pointer;
136146

147+
&:focus {
148+
outline: none;
149+
}
150+
151+
&:focus-visible {
152+
outline: none;
153+
}
154+
137155
&.disabled {
138156
background: #f4f4f4;
139157
color: #767676;

src/shared/components/Settings/Account/Security/index.jsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -162,16 +162,16 @@ export default function Security({
162162
Google Play Store or the iOS App Store.
163163
</div>
164164
<div styleName="app-store">
165-
<div styleName="market">
166-
<a href="https://play.google.com/store/apps/details?id=com.diwallet1" target="_blank" rel="noreferrer"><img src={GooglePlay} alt="Google Play Store" /></a>
165+
<div styleName="market mmr">
166+
<a href="https://play.google.com/store/apps/details?id=com.diwallet1" target="_blank" rel="noreferrer" styleName="market-link"><img src={GooglePlay} alt="Google Play Store" /></a>
167167
<QRCode size={190} value="https://play.google.com/store/apps/details?id=com.diwallet1" />
168168
</div>
169169
<div styleName="market">
170-
<a href="https://apps.apple.com/in/app/dice-id/id1624858853" target="_blank" rel="noreferrer"><AppleStore /></a>
170+
<a href="https://apps.apple.com/in/app/dice-id/id1624858853" target="_blank" rel="noreferrer" styleName="market-link"><AppleStore /></a>
171171
<QRCode size={190} value="https://apps.apple.com/in/app/dice-id/id1624858853" />
172172
</div>
173173
</div>
174-
<div styleName="step-content">
174+
<div styleName="step-content no-margin">
175175
After you have downloaded and installed the mobile app,
176176
<strong> make sure to complete the configuration process. </strong>
177177
When ready, click next below.
@@ -198,7 +198,7 @@ export default function Security({
198198
? <QRCode size={298} value={diceConnection.connection} />
199199
: 'Loading'}
200200
</div>
201-
<div styleName="step-content">
201+
<div styleName="step-content no-margin">
202202
Once the connection is established, the service will offer you a Verifiable Credential.
203203
<br />Press the ACCEPT button in your DICE ID App.
204204
<br />If you DECLINE the invitation, please try again after 5 minutes.
@@ -255,7 +255,7 @@ export default function Security({
255255
<div styleName="body-logo">
256256
<img src={DiceLogoBig} alt="diceid" />
257257
</div>
258-
<div styleName="step-content">
258+
<div styleName="step-content no-margin">
259259
For more information on DICE ID, please visit<br />
260260
<a href="https://www.diceid.com/" target="_blank" rel="noreferrer" style={{ color: '#0D61BF' }}>https://www.diceid.com/</a><br /><br />
261261
Please click Finish bellow.
@@ -274,7 +274,7 @@ export default function Security({
274274
<div styleName="icon-unsuccessful">
275275
<UnsuccessfulIcon />
276276
</div>
277-
<div styleName="step-title error">
277+
<div styleName="step-title error no-margin">
278278
Unsuccessful Verification
279279
</div>
280280
</div>
@@ -286,7 +286,7 @@ export default function Security({
286286
<div styleName="body-logo">
287287
<img src={DiceLogoBig} alt="diceid" />
288288
</div>
289-
<div styleName="step-content">
289+
<div styleName="step-content no-margin">
290290
Please try again your process after few minutes.<br /><br />
291291
Please click Finish bellow.
292292
</div>

src/shared/components/Settings/Account/Security/styles.scss

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,13 +183,11 @@
183183
display: flex;
184184
flex-direction: column;
185185
align-items: flex-start;
186-
gap: 16px;
187186

188187
.step-title-container {
189188
display: flex;
190189
flex-direction: row;
191190
align-items: center;
192-
gap: 8px;
193191

194192
.icon-unsuccessful {
195193
display: flex;
@@ -198,6 +196,7 @@
198196
flex: 0 0 32px;
199197
width: 32px;
200198
height: 32px;
199+
margin-bottom: 8px;
201200

202201
svg {
203202
display: block;
@@ -212,10 +211,15 @@
212211
line-height: 28px;
213212
color: $tco-black;
214213
text-transform: uppercase;
214+
margin-bottom: 16px;
215215

216216
&.error {
217217
color: #ef476f;
218218
}
219+
220+
&.no-margin {
221+
margin-bottom: 0;
222+
}
219223
}
220224

221225
.step-content {
@@ -224,22 +228,34 @@
224228
font-size: 20px;
225229
line-height: 26px;
226230
color: $tco-black;
231+
margin-bottom: 16px;
232+
233+
&.no-margin {
234+
margin-bottom: 0;
235+
}
227236
}
228237

229238
.app-store {
230239
display: flex;
231240
flex-direction: row;
232241
padding: 16px 0;
233242
align-items: flex-start;
234-
gap: 100px;
235243
width: 100%;
236244
justify-content: center;
245+
margin-bottom: 16px;
237246

238247
.market {
239248
display: flex;
240249
flex-direction: column;
241250
align-items: center;
242-
gap: 32px;
251+
252+
&.mmr {
253+
margin-right: 100px;
254+
}
255+
256+
.market-link {
257+
margin-bottom: 32px;
258+
}
243259
}
244260
}
245261

@@ -251,6 +267,7 @@
251267
gap: 100px;
252268
width: 100%;
253269
justify-content: center;
270+
margin-bottom: 16px;
254271
}
255272
}
256273

0 commit comments

Comments
 (0)