diff --git a/pages/Authorize.vue b/pages/Authorize.vue index fa0c00e8..ffb8dc09 100644 --- a/pages/Authorize.vue +++ b/pages/Authorize.vue @@ -20,8 +20,8 @@ import { mapState } from 'vuex' export default { - layout: 'modal', name: 'Authorize', + layout: 'modal', middleware: ['auth'], async asyncData ({ $axios, query, error, req }) { const { client_id, redirect_uri, scope, response_type } = query diff --git a/pages/event/_id.vue b/pages/event/_id.vue index d275a237..ad3bde75 100644 --- a/pages/event/_id.vue +++ b/pages/event/_id.vue @@ -319,9 +319,9 @@ export default { margin-bottom: 25px; } .main_image { - width: 100%; + // width: 100%; margin: 0 auto; - max-height: 80vh; + // max-height: 120vh; border-radius: 5px; transition: max-height 0.2s; } diff --git a/server/api/storage.js b/server/api/storage.js index 1692c99b..34aa1f29 100644 --- a/server/api/storage.js +++ b/server/api/storage.js @@ -20,7 +20,7 @@ const DiskStorage = { const outStream = fs.createWriteStream(finalPath) const thumbStream = fs.createWriteStream(thumbPath) - const resizer = sharp().resize(1200).jpeg({ quality: 95 }) + const resizer = sharp().resize(1200).jpeg({ quality: 98 }) const thumbnailer = sharp().resize(400).jpeg({ quality: 90 }) let onError = false const err = e => {