-
-
{{ $t('update.title') }}
-
+
+
🚀 {{ $t('update.title') }}
-
-
+
-
Ten changelog będzie zawsze dostępny po kliknięciu numeru wersji w stopce strony!
-
-
-
+
+ {{ $t('update.info-1') }}
+
+
+
@@ -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 @@
-
-
-
-
+
+
+
+
@@ -30,8 +30,7 @@ export default defineComponent({
watch: {
isOpen(v) {
this.$nextTick(() => {
- if (v) (this.$refs['wrapper'] as HTMLElement).focus();
- else (this.store.modalLastClickedTarget as HTMLElement)?.focus();
+ if (v == false) (this.store.modalLastClickedTarget as HTMLElement)?.focus();
});
}
},
@@ -47,17 +46,21 @@ export default defineComponent({