Skip to content

Commit b1e60dc

Browse files
committed
optimize for tablet
1 parent 8a9aec8 commit b1e60dc

File tree

2 files changed

+15
-16
lines changed

2 files changed

+15
-16
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
.container {
1818
background: #fff;
1919
position: fixed;
20-
width: 90%;
21-
max-width: 1000px;
20+
width: 1000px;
2221
height: 752px;
2322
max-height: 99%;
2423
top: 50%;

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

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,9 @@
88
padding: $pad-xxxxl;
99
background-color: $color-tc-white;
1010
border-radius: 4px;
11-
gap: 32px;
1211

13-
@include upto-sm {
12+
@media (max-width: #{$screen-md - 1px}) {
1413
padding: 26px 16px;
15-
gap: 24px;
1614
}
1715

1816
.security-title {
@@ -33,13 +31,13 @@
3331
padding: $pad-lg;
3432
border: 1px solid $color-black-20;
3533
border-radius: 8px;
36-
gap: 16px;
3734
width: 100%;
35+
margin-top: 32px;
3836

39-
@include upto-sm {
40-
gap: 8px;
37+
@media (max-width: #{$screen-md - 1px}) {
4138
flex-direction: column;
4239
align-items: flex-start;
40+
margin-top: 24px;
4341
}
4442

4543
.icon-wrapper {
@@ -51,9 +49,11 @@
5149
height: 74px;
5250
background: $color-black-5;
5351
border-radius: 4px;
52+
margin-right: 16px;
5453

55-
@include upto-sm {
54+
@media (max-width: #{$screen-md - 1px}) {
5655
align-self: flex-start;
56+
margin-bottom: 8px;
5757
}
5858

5959
img {
@@ -66,10 +66,6 @@
6666
flex-direction: column;
6767
flex: 1;
6868

69-
@include upto-sm {
70-
gap: 8px;
71-
}
72-
7369
.info-first-line {
7470
@include roboto-regular;
7571

@@ -79,6 +75,10 @@
7975
letter-spacing: 0.5px;
8076
text-transform: capitalize;
8177
color: $tco-black;
78+
79+
@media (max-width: #{$screen-md - 1px}) {
80+
margin-bottom: 8px;
81+
}
8282
}
8383

8484
.info-second-line {
@@ -93,7 +93,7 @@
9393
display: none;
9494
}
9595

96-
@include upto-sm {
96+
@media (max-width: #{$screen-md - 1px}) {
9797
padding-right: 0;
9898

9999
&.dice-info {
@@ -108,7 +108,7 @@
108108
}
109109

110110
.on-off-switch {
111-
@include upto-sm {
111+
@media (max-width: #{$screen-md - 1px}) {
112112
display: block;
113113
position: absolute;
114114
align-self: flex-end;
@@ -146,7 +146,7 @@
146146
pointer-events: none;
147147
}
148148

149-
@include upto-sm {
149+
@media (max-width: #{$screen-md - 1px}) {
150150
display: none;
151151
}
152152
}

0 commit comments

Comments
 (0)