Skip to content

Commit 33a8ca6

Browse files
fixed #365 issue
1 parent a722f92 commit 33a8ca6

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

src/projects/detail/components/FeatureSelector/FeaturePreview.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ const FeaturePreview = props => {
2424
// }
2525
return (
2626
<div className="feature-preview flex-grow">
27-
<img src={ previewImg } />
27+
<div className="feature-preview-img">
28+
<img src={ previewImg } />
29+
</div>
2830
</div>
2931
)
3032
}

src/projects/detail/components/FeatureSelector/FeaturePreview.scss

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,20 @@
22

33
.feature-preview {
44
text-align: center;
5-
padding: (8 * $base-unit) (12 * $base-unit) ;
6-
background: url('./images/Device-iPhone.svg') no-repeat;
5+
/*padding: (8 * $base-unit) (12 * $base-unit) ;*/
6+
/*background: url('./images/Device-iPhone.svg') no-repeat;*/
77
background-color: #FBFDFF;
88
background-position: 50% 22px;
9-
padding-top: 88px;
9+
padding: 8 * $base-unit;
1010
border-left: 1px solid $tc-dark-blue-30;
11-
11+
.feature-preview-img {
12+
background: url('./images/Device-iPhone.svg') no-repeat;
13+
/*padding: (8 * $base-unit) (12 * $base-unit) ;*/
14+
padding: 9.18vh 1.57vw;
15+
height: 78.5vh;
16+
background-size: contain;
17+
}
1218
img {
13-
max-height: 500px;
19+
max-height: 100%;
1420
}
1521
}

0 commit comments

Comments
 (0)