feat: update passwords tool UI, fix layout issues, and set PWA theme color
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
<template>
|
||||
<div v-if="showInstallPrompt" class="install-prompt glass-panel unselectable">
|
||||
<div class="prompt-content">
|
||||
<span class="prompt-text">Zainstaluj aplikację dla szybszego dostępu</span>
|
||||
<span class="prompt-text">Install app for faster access</span>
|
||||
<div class="prompt-actions">
|
||||
<button @click="installPWA" class="install-btn">Zainstaluj</button>
|
||||
<button @click="installPWA" class="install-btn">Install</button>
|
||||
<button @click="dismissPrompt" class="dismiss-btn">✕</button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -19,6 +19,12 @@ let deferredPrompt = null
|
||||
const handleBeforeInstallPrompt = (e) => {
|
||||
// Prevent Chrome 67 and earlier from automatically showing the prompt
|
||||
e.preventDefault()
|
||||
|
||||
// Only show install prompt if we are on the specific domain
|
||||
if (window.location.hostname !== 'tools.7u.pl') {
|
||||
return
|
||||
}
|
||||
|
||||
// Stash the event so it can be triggered later.
|
||||
deferredPrompt = e
|
||||
// Update UI to notify the user they can add to home screen
|
||||
|
||||
Reference in New Issue
Block a user