Skip to content

Commit

Permalink
final Fix IPhone scrolling // added spacer div to content-expanded
Browse files Browse the repository at this point in the history
  • Loading branch information
tschuhmacher committed Aug 22, 2019
1 parent 1c6d05d commit 6af657e
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 15 deletions.
9 changes: 6 additions & 3 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,13 @@ a {
text-decoration: none;
}
html,
body {
html {
background-color: black;
height: 100%;
}
body {
margin: 0;
min-height: 100vh;
position: relative;
width: 100%;
}
Expand Down
16 changes: 10 additions & 6 deletions src/components/Slider.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
<v-img :src="slide.image" aspect-ratio="1.3" class="grey lighten-2 card__image"/>
<p>{{slide.imageSubtitle}}</p>
<p>{{slide.secondContent}}</p>
<div class="overflowSpacer"></div>
</div>

<div v-if="!isExpanded">
Expand Down Expand Up @@ -342,13 +343,16 @@ header {
/* expanded content wrapper to allow scroll if the text reach over 70% of the viewport height */
.content-expanded {
max-height: 70vh;
overflow-y: scroll;
/* additional margin for the last content item */
p:last-child {
margin-bottom: 5em;
}
max-height: 64vh;
padding-bottom: 1px;
overflow: auto;
}
/* additional margin for the last content item */
.overflowSpacer{
height: 64px;
}
/* specific rules for mobile/tablet devices */
@media (max-width: 768px) {
/* Offset for non active slides */
Expand Down
12 changes: 6 additions & 6 deletions src/views/Model.vue
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export default {
const infoPoints = model.infoPoints;
return {
publicPath: process.env.BASE_URL,
publicPath: process.env.BASE_URL,
config,
languageVersion,
Expand Down Expand Up @@ -241,13 +241,13 @@ export default {
z-index: 8;
p {
margin-bottom: 0px;
:first-child {
width: 10px;
height: 20px;
}
// :first-child {
// width: 10px;
// height: 20px;
// }
}
h3 {
margin-bottom: 5px;
// margin-bottom: 5px;
}
}
Expand Down

0 comments on commit 6af657e

Please sign in to comment.