show right column as footer on smartphones
This commit is contained in:
@@ -7,6 +7,9 @@
|
|||||||
<router-view name="rightColumn" />
|
<router-view name="rightColumn" />
|
||||||
</div>
|
</div>
|
||||||
<router-view />
|
<router-view />
|
||||||
|
<div class="right-column-overlay" v-if="showAsFooter">
|
||||||
|
<router-view name="rightColumn" />
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="right-column" v-if="showRightColumn">
|
<div class="right-column" v-if="showRightColumn">
|
||||||
<router-view name="rightColumn" />
|
<router-view name="rightColumn" />
|
||||||
@@ -38,6 +41,9 @@ export default {
|
|||||||
showOverlay() {
|
showOverlay() {
|
||||||
return this.windowWidth <= 1200 && this.windowWidth >= 768;
|
return this.windowWidth <= 1200 && this.windowWidth >= 768;
|
||||||
},
|
},
|
||||||
|
showAsFooter() {
|
||||||
|
return this.windowWidth < 768;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
window.addEventListener('resize', this.handleResize);
|
window.addEventListener('resize', this.handleResize);
|
||||||
|
|||||||
Reference in New Issue
Block a user