diff --git a/src/App.vue b/src/App.vue index 28cfaba..a0f095b 100644 --- a/src/App.vue +++ b/src/App.vue @@ -219,3 +219,9 @@ export default Vue.extend({ min-height: 36px; } + + \ No newline at end of file diff --git a/src/components/Drawer.vue b/src/components/Drawer.vue index 240e5cd..65ba3ba 100644 --- a/src/components/Drawer.vue +++ b/src/components/Drawer.vue @@ -146,8 +146,6 @@ export default { ]; const endItems = [ { icon: 'mdi-delta', title: tr('logs'), click: () => this.updateOptions('showLogs', true) }, - { icon: 'mdi-rss-box', title: 'RSS', click: () => this.updateOptions('showRss', true) }, - { icon: 'mdi-history', title: tr('label.switch_to_old_ui'), click: this.switchUi }, ]; return { @@ -156,6 +154,16 @@ export default { endItems, }; }, + created() { + if (this.phoneLayout) { + return + } + + this.endItems = this.endItems.concat([ + { icon: 'mdi-rss-box', title: 'RSS', click: () => this.updateOptions('showRss', true) }, + { icon: 'mdi-history', title: tr('label.switch_to_old_ui'), click: this.switchUi }, + ]) + }, computed: { ...mapGetters([ @@ -166,6 +174,9 @@ export default { 'torrentGroupBySite', 'torrentGroupByState', ]), + phoneLayout() { + return this.$vuetify.breakpoint.smAndDown; + }, items(): Array { if (!this.isDataReady) { return _.concat(this.basicItems, this.endItems); diff --git a/src/components/Torrents.vue b/src/components/Torrents.vue index 48711ff..05e0051 100644 --- a/src/components/Torrents.vue +++ b/src/components/Torrents.vue @@ -1,15 +1,7 @@ - + - - - + +