feat: update passwords tool UI, fix layout issues, and set PWA theme color

This commit is contained in:
2026-02-27 00:31:26 +00:00
parent 7c4f1b20b3
commit c8a009dda1
6 changed files with 196 additions and 40 deletions

View File

@@ -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