Files
LoreMind/web/src/app/sessions/active-session-shortcut/active-session-shortcut.component.scss
T
ietm64 d926545e3d
Qualité & Sécurité / Web (ESLint · angular-eslint + sonarjs) (push) Successful in 1m43s
Qualité & Sécurité / MegaLinter (PMD · Ruff · Bandit · gitleaks · hadolint) (push) Successful in 2m3s
Qualité & Sécurité / Trivy (CVE dépendances Maven / pip / npm) (push) Failing after 1m3s
Build & Push Images / build (brain) (push) Successful in 2m40s
Build & Push Images / build (core) (push) Successful in 4m24s
Build & Push Images / build (web) (push) Successful in 2m35s
Build & Push Images / build-switcher (push) Successful in 24s
Mobile : raccourci « Séance en cours » dans la barre haute + hub sans débordement à 375 px
- Barre haute mobile : pastille « Séance en cours » (mode compact du
  raccourci, 44 px) — un tap ramène à la séance, liste déroulante s'il y en a
  plusieurs (fermée par Échap ou un tap à côté).
- Hub campagne : l'en-tête de section « Arcs narratifs » passe à la ligne au
  lieu de déborder (3 boutons depuis l'ajout de « Méthode guidée »).

Vérifié : core clean verify (1206 tests), web build + 337 vitest, lint sans
erreur, e2e Playwright 80/80 (desktop + mobile 375 px) sur la branche
fusionnée.
À redéployer : web.
2026-10-17 14:07:20 +02:00

152 lines
3.2 KiB
SCSS

:host { display: block; }
.active-shortcut {
display: flex;
flex-direction: column;
gap: 0.25rem;
margin-top: 0.75rem;
}
.shortcut-main {
display: flex;
align-items: center;
gap: 0.45rem;
width: 100%;
min-height: 44px; // cible tactile
padding: 0.45rem 0.5rem 0.45rem 0.6rem;
background: rgba(16, 185, 129, 0.1);
border: 1px solid rgba(16, 185, 129, 0.45);
border-radius: 8px;
color: #d1fae5;
cursor: pointer;
text-align: left;
transition: background 0.15s, border-color 0.15s;
&:hover { background: rgba(16, 185, 129, 0.18); border-color: #10b981; }
&:focus-visible { outline: 2px solid #10b981; outline-offset: 2px; }
&--current { background: rgba(16, 185, 129, 0.22); }
}
.live-dot {
flex: 0 0 auto;
width: 8px;
height: 8px;
border-radius: 50%;
background: #10b981;
box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
animation: live-pulse 2s infinite;
}
@keyframes live-pulse {
0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
@media (prefers-reduced-motion: reduce) {
.live-dot { animation: none; }
}
.shortcut-texts {
display: flex;
flex-direction: column;
min-width: 0;
flex: 1;
}
.shortcut-label {
font-size: 0.8rem;
font-weight: 600;
line-height: 1.25;
overflow-wrap: anywhere; // sidebar étroite : passe à la ligne plutôt que de tronquer
}
.shortcut-sub {
font-size: 0.72rem;
color: #6ee7b7;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.shortcut-icon { flex: 0 0 auto; color: #6ee7b7; }
.shortcut-list {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
gap: 0.2rem;
}
.shortcut-item {
display: flex;
flex-direction: column;
gap: 0.1rem;
width: 100%;
min-height: 44px;
justify-content: center;
padding: 0.4rem 0.7rem;
background: #161628;
border: 1px solid #2a2a45;
border-radius: 6px;
color: #e5e7eb;
cursor: pointer;
text-align: left;
&:hover { border-color: #10b981; }
&:focus-visible { outline: 2px solid #10b981; outline-offset: 2px; }
&--current { border-color: #10b981; background: rgba(16, 185, 129, 0.12); }
}
.shortcut-item-name,
.shortcut-item-ctx {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 100%;
}
.shortcut-item-name { font-size: 0.8rem; font-weight: 500; }
.shortcut-item-ctx { font-size: 0.7rem; color: #9ca3af; }
// --- Mode compact (barre haute mobile) ----------------------------------------------
:host(.compact) {
position: relative;
.active-shortcut { margin-top: 0; }
.shortcut-main {
justify-content: center;
gap: 0.3rem;
width: auto;
min-width: 44px;
height: 44px;
padding: 0 0.55rem;
}
.live-dot { width: 10px; height: 10px; }
.shortcut-list {
position: absolute;
top: calc(100% + 6px);
right: 0;
z-index: 30;
width: min(280px, calc(100vw - 2rem));
padding: 0.4rem;
background: #0f0f1a;
border: 1px solid #2a2a45;
border-radius: 8px;
box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}
}
.compact-count {
font-size: 0.8rem;
font-weight: 700;
color: #d1fae5;
font-variant-numeric: tabular-nums;
}