fix menu on ios

This commit is contained in:
Philipp Kühn
2021-02-04 09:42:27 +01:00
parent f5e419ae9c
commit d7ae2751af
2 changed files with 6 additions and 3 deletions

View File

@@ -202,10 +202,11 @@ export default {
}, },
mounted() { mounted() {
this.handleResize() // what the hell is wrong with iOS safari
this.$nextTick(() => { setTimeout(() => {
this.handleResize()
this.initSearch() this.initSearch()
}) }, 0)
window.addEventListener('resize', this.handleResize) window.addEventListener('resize', this.handleResize)
}, },

View File

@@ -3,6 +3,8 @@ $mobileBreakPoint: 600px;
$menuBreakPoint: 800px; $menuBreakPoint: 800px;
.app { .app {
overflow: hidden;
&__navigation { &__navigation {
position: fixed; position: fixed;
display: flex; display: flex;