Skip to content

Commit

Permalink
hide keyshorts on mobile devices
Browse files Browse the repository at this point in the history
  • Loading branch information
Fa!ko Krause committed Oct 24, 2017
1 parent 32932b3 commit 514eb14
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/components/about-player.vue
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
<script>
import { mapMutations } from 'vuex';
import { mapMutations, mapState } from 'vuex';
export default {
name: 'about-player',
methods: {
...mapMutations(['setShowSettings', 'toggleLeftMenu', 'setLeftMenuTab']),
},
computed: {
...mapState(['isMobile']),
},
};
</script>

<template>
<div class="wmp-about">
<h2>Keyboard shortcuts</h2>
<h2 v-if="!isMobile">Keyboard shortcuts</h2>
<p>
<dl>
<dl v-if="!isMobile">
<dt>c</dt>
<dd>Play / pause</dd>
<dt>b</dt>
Expand Down

0 comments on commit 514eb14

Please sign in to comment.