diff --git a/src/App.vue b/src/App.vue index 0f93046..65befbc 100644 --- a/src/App.vue +++ b/src/App.vue @@ -27,9 +27,9 @@ © Spythere {{ new Date().getUTCFullYear() }} | - v{{ VERSION }}{{ isOnProductionHost ? '' : 'dev' }} +
@@ -243,10 +243,15 @@ export default defineComponent({ } // FOOTER -footer.app_footer { +.app_footer { max-width: 100%; padding: 0.5em; + button { + display: inline-block; + padding: 0.1em; + } + img { width: 1.1em; vertical-align: text-bottom; diff --git a/src/components/App/UpdateModal.vue b/src/components/App/UpdateModal.vue index f3a282f..4844347 100644 --- a/src/components/App/UpdateModal.vue +++ b/src/components/App/UpdateModal.vue @@ -1,29 +1,19 @@ @@ -57,6 +47,14 @@ export default defineComponent({ }; }, + watch: { + updateModalOpen(val: boolean) { + this.$nextTick(() => { + if (val) (this.$refs['confirm-btn'] as HTMLElement).focus(); + }); + } + }, + computed: { htmlChangelog() { if (this.mainStore.appUpdate == null) return ''; @@ -91,14 +89,13 @@ export default defineComponent({ line-height: 1.5em; } -.modal_content { - padding: 2em; - height: 80vh; - min-height: 550px; - +.modal-content { display: grid; grid-template-rows: auto 1fr auto; gap: 0.5em; + padding: 1em 2em; + min-height: 700px; + overflow: auto; } hr.separator { @@ -108,9 +105,18 @@ hr.separator { background-color: #fff; } -.modal_actions { - display: flex; - flex-wrap: wrap; - gap: 0.5em; +button { + margin: 0 auto; + padding: 0.5em 0.75em; + font-size: 1.1em; +} + +p.bottom-info { + text-align: center; + color: #ccc; +} + +a { + text-decoration: underline; } diff --git a/src/components/Global/AnimatedModal.vue b/src/components/Global/AnimatedModal.vue index fec439c..e97ebc1 100644 --- a/src/components/Global/AnimatedModal.vue +++ b/src/components/Global/AnimatedModal.vue @@ -1,8 +1,8 @@