fix(ui): update notification inline in header title area, no full-page banner
Instead of a fixed banner that covers the top of the page, the update
notification now replaces only the header title area (the centered title):
- .header-title content is swapped in-place with an animated pill:
⬆️ v1.x.x [Aggiorna] ✕
- Pulsing animation (header-update-pulse) draws attention without being
intrusive; camera and Gemini buttons stay exactly where they are
- [Aggiorna] button does window.location.reload()
- [✕] dismisses: for a release update stores publishedAt so it won't reappear;
for a server deploy simply restores title (reappears next 5-min check)
- Auto-restores after 60 s without marking as seen
- Removed the old fixed position:fixed banner entirely
This commit is contained in:
@@ -135,6 +135,41 @@ body {
|
||||
letter-spacing: 0.03em;
|
||||
}
|
||||
|
||||
/* Update available indicator — replaces title content, same absolute centering */
|
||||
.header-update-pill {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
animation: header-update-pulse 2s ease-in-out infinite;
|
||||
}
|
||||
.header-update-pill span {
|
||||
font-size: 0.85rem;
|
||||
font-weight: 600;
|
||||
opacity: 0.95;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.header-update-btn {
|
||||
background: #fbbf24;
|
||||
color: #1e293b;
|
||||
border: none;
|
||||
border-radius: 20px;
|
||||
padding: 3px 12px;
|
||||
font-size: 0.78rem;
|
||||
font-weight: 800;
|
||||
cursor: pointer;
|
||||
letter-spacing: 0.02em;
|
||||
flex-shrink: 0;
|
||||
transition: background 0.15s, transform 0.1s;
|
||||
}
|
||||
.header-update-btn:active {
|
||||
background: #f59e0b;
|
||||
transform: scale(0.96);
|
||||
}
|
||||
@keyframes header-update-pulse {
|
||||
0%, 100% { opacity: 1; }
|
||||
50% { opacity: 0.7; }
|
||||
}
|
||||
|
||||
.header-btn {
|
||||
background: rgba(255,255,255,0.2);
|
||||
border: none;
|
||||
|
||||
Reference in New Issue
Block a user