Mise en place d'un composant permettant d'améliorer l'experience de mise à jour (via un rafraichissement de l'appli).
Some checks failed
E2E Tests / e2e (push) Has been cancelled
Build & Push Images / build (brain) (push) Successful in 1m0s
Build & Push Images / build (core) (push) Successful in 1m47s
Build & Push Images / build (web) (push) Successful in 1m38s

Modification de la partie web pour prendre la modification en compte
This commit is contained in:
2026-04-29 14:39:30 +02:00
parent 4fe93b5ff3
commit efaf5a3794
7 changed files with 281 additions and 3 deletions

View File

@@ -0,0 +1,68 @@
.update-banner {
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 9999;
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
padding: 10px 20px;
background: linear-gradient(90deg, #6d28d9, #7c3aed);
color: #fff;
font-size: 0.9rem;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
.banner-content {
display: flex;
align-items: center;
gap: 10px;
flex: 1;
min-width: 0;
}
.banner-actions {
display: flex;
align-items: center;
gap: 8px;
}
.btn-reload {
background: #fff;
color: #6d28d9;
border: 0;
padding: 6px 14px;
border-radius: 4px;
font-weight: 600;
cursor: pointer;
font-size: 0.85rem;
&:hover {
background: rgba(255, 255, 255, 0.92);
}
}
.btn-dismiss {
background: transparent;
border: 0;
color: rgba(255, 255, 255, 0.85);
cursor: pointer;
padding: 4px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 4px;
&:hover {
background: rgba(255, 255, 255, 0.15);
color: #fff;
}
}
}
// Decale le contenu de l'app vers le bas quand le bandeau est present
// (bandeau fixed, ne pousse pas naturellement le layout).
:host:has(.update-banner) {
display: block;
}