Skip to content
This repository has been archived by the owner on Sep 27, 2022. It is now read-only.

Commit

Permalink
fix(mobile): Merge pull request #118 from anluh/MAINTAIN-200
Browse files Browse the repository at this point in the history
[MAINTAIN-200] Remove extra space in filters & bookmarks; Fix scroll …
  • Loading branch information
podarok authored Dec 8, 2021
2 parents 0d174b7 + e1c7ef4 commit 15d8d13
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 26 deletions.
2 changes: 1 addition & 1 deletion openy_af4_vue_app/dist/activity_finder_4.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion openy_af4_vue_app/dist/activity_finder_4.umd.min.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion openy_af4_vue_app/dist/activity_finder_4.umd.min.js.map

This file was deleted.

8 changes: 1 addition & 7 deletions openy_af4_vue_app/src/components/filters/Filters.vue
Original file line number Diff line number Diff line change
Expand Up @@ -245,9 +245,7 @@ export default {
return this.bsVersion === 4 ? 'd-none d-lg-flex' : 'hidden-xs hidden-sm'
},
footerClasses() {
const classes = this.bsVersion === 4 ? ['d-lg-none'] : ['hidden-md', 'hidden-lg']
classes.push(this.isIosMobile ? 'ios-mobile-device' : '')
return classes
return this.bsVersion === 4 ? ['d-lg-none'] : ['hidden-md', 'hidden-lg']
}
},
watch: {
Expand Down Expand Up @@ -325,10 +323,6 @@ export default {
.filters-footer {
height: 140px;
&.ios-mobile-device .buttons {
border-bottom: 70px solid $white;
}
.buttons {
position: fixed;
bottom: 0;
Expand Down
6 changes: 1 addition & 5 deletions openy_af4_vue_app/src/components/modals/BookmarkedItems.vue
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
</div>

<div class="bookmarked-items-footer">
<div class="footer-content" :class="{ 'ios-mobile-device': isIosMobile }">
<div class="footer-content">
<div class="left">
{{ 'Bookmarks are automatically cleared after 5 days.' | t }}
</div>
Expand Down Expand Up @@ -413,10 +413,6 @@ export default {
font-size: 12px;
line-height: 18px;
&.ios-mobile-device {
border-bottom: 70px solid $white;
}
.left {
max-width: 220px;
}
Expand Down
4 changes: 4 additions & 0 deletions openy_af4_vue_app/src/components/modals/Modal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
'af-narrow': narrow,
'af-responsive': responsive
}"
modal-outer-class="af-modal-wrapper"
dialog-class="af-modal-dialog"
header-class="af-modal-header"
title-class="af-modal-title"
Expand Down Expand Up @@ -79,6 +80,9 @@ export default {
</script>

<style lang="scss">
[modal-outer-class='af-modal-wrapper'] {
z-index: 2001 !important;
}
.af-modal {
// TODO: Move out to another place - MPR-163.
// Overriding Open Y Lily customizations and Bootstrap 3/4 compatibilities.
Expand Down
6 changes: 1 addition & 5 deletions openy_af4_vue_app/src/components/steps/Step.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div class="step-component" :class="{ 'ios-mobile-device': isIosMobile }">
<div class="step-component">
<div class="container">
<div class="row">
<div class="col-12 col-xs-12">
Expand Down Expand Up @@ -222,10 +222,6 @@ export default {
margin-top: 20px;
}
&.ios-mobile-device .buttons.sticky {
border-bottom: 70px solid $af-black;
}
.buttons {
width: 100%;
Expand Down
12 changes: 6 additions & 6 deletions openy_af4_vue_app/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import App from '@/App.vue'
import router from '@/router/index.js'

// Listen to custom event to track events in Google Analytics.
document.addEventListener('openy_activity_finder_event', (e) => {
document.addEventListener('openy_activity_finder_event', e => {
const { action, label, value, category } = e.detail

if (window.gtag) {
Expand Down Expand Up @@ -41,6 +41,11 @@ Vue.filter('formatPlural', function(
})

Vue.mixin({
computed: {
isIosMobile() {
return /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream
}
},
methods: {
trackEvent(action, label, value = 0, category = 'Activity Finder') {
// Custom event for external code to listen to and react upon.
Expand Down Expand Up @@ -75,11 +80,6 @@ Vue.mixin({
}
return ''
}
},
computed: {
isIosMobile() {
return /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream
}
}
})

Expand Down

0 comments on commit 15d8d13

Please sign in to comment.