Skip to content

Commit

Permalink
fix: 🐛 Fixed track adder window on mobile
Browse files Browse the repository at this point in the history
Fixed #45
  • Loading branch information
EricLambrecht committed Feb 3, 2019
1 parent be1583b commit 868a848
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions src/components/editor/AddTrackModal.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<b-modal headline="Add track" :show="show">
<track-search class="adder" @select="appendTrackToPlaylist" />
<track-search class="adder" @select="addTrack" />
<div slot="footer">
<b-button @click="$emit('close')">
Close
Expand All @@ -23,12 +23,13 @@ export default {
},
},
methods: {
...mapActions('app', [
'closeModal',
]),
...mapActions('editor', [
'appendTrackToPlaylist',
]),
addTrack(uri) {
this.appendTrackToPlaylist(uri);
this.$emit('close');
},
},
};
</script>
Expand All @@ -38,4 +39,12 @@ export default {
width: 600px;
height: 290px;
}
@media screen and (max-width: 768px) {
.adder {
min-width: calc(100vw - 80px);
width: calc(100vw - 80px);
height:70vh;
}
}
</style>

0 comments on commit 868a848

Please sign in to comment.