Add improvements for small screens

This commit is contained in:
Christoph Wiechert
2017-05-08 23:40:01 +02:00
parent 63042cb9c2
commit b843776cc9
2 changed files with 13 additions and 2 deletions

View File

@@ -1,9 +1,9 @@
<template lang="pug">
.upload-app
.upload-app#uploadApp
.btn-group(style='position: absolute; top: 15px; right: 15px;')
a.btn.btn-sm.btn-info(@click='newSession()', title='New Upload')
i.fa.fa-fw.fa-cloud-upload
| new upload
span.hidden-xs new upload
.alert.alert-danger(v-show="error")
strong
i.fa.fa-exclamation-triangle
@@ -69,6 +69,16 @@
}
},
watch: {
state: function(val) {
if(val === 'uploaded' || val === 'uploadError') {
const el = document.getElementById('uploadApp');
if(!el || !el.scrollIntoView) return;
el.scrollIntoView(true);
}
}
},
methods: {
newSession() {
if(!confirm('Create a new upload session?')) return;