From aa9b5d2cb1598be5693f035b6d4166285345870d Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Mon, 19 Dec 2022 22:14:54 +0100 Subject: [PATCH] ui: pwa prompt --- components/PWAPrompt.client.vue | 32 ++++++++++++++++++-------------- locales/en-US.json | 6 +++--- locales/es-ES.json | 1 - 3 files changed, 21 insertions(+), 18 deletions(-) diff --git a/components/PWAPrompt.client.vue b/components/PWAPrompt.client.vue index 056cd2e2..ee5a0bd7 100644 --- a/components/PWAPrompt.client.vue +++ b/components/PWAPrompt.client.vue @@ -15,25 +15,29 @@ const { close, needRefresh, updateServiceWorker } = usePWA() z11 fixed bottom-14 md:bottom-0 right-0 - m-2 p-4 + m-2 p-4 w-100 bg-base border="~ base" rounded text-left shadow + flex="~ gap-4" > -

- {{ $t('pwa.title') }} -

-
- {{ $t('pwa.message') }} -
-
- - + logo +
+

+ {{ $t('pwa.title') }} +

+
+ {{ $t('pwa.message') }} +
+
+ + +
diff --git a/locales/en-US.json b/locales/en-US.json index 43647650..02f94a06 100644 --- a/locales/en-US.json +++ b/locales/en-US.json @@ -191,10 +191,10 @@ "the_thread": "the thread" }, "pwa": { - "close": "Close", - "message": "@:pwa.title{','} click on @:pwa.reload button to update.", + "dismiss": "Dismiss", + "message": "@:pwa.title{','} click on the @:pwa.reload button to update.", "reload": "Reload", - "title": "New Elk version available" + "title": "New Elk update available" }, "search": { "search_desc": "Search for people & hashtags" diff --git a/locales/es-ES.json b/locales/es-ES.json index 8009f5d6..dc99b726 100644 --- a/locales/es-ES.json +++ b/locales/es-ES.json @@ -188,7 +188,6 @@ "the_thread": "el hilo" }, "pwa": { - "close": "Cerrar", "message": "@:pwa.title{','} haz click en el botón @:pwa.reload para actualizar.", "reload": "Recargar", "title": "Nueva versión de Elk disponible"