Corrige la modale d'arbre du Scenario transparente
Build and deploy / test-python (push) Successful in 6m59s
Build and deploy / test-js (push) Successful in 45s
Build and deploy / lint-python (push) Successful in 5m8s
Build and deploy / lint-js (push) Failing after 1m45s
Build and deploy / build-and-push (push) Skipped
Build and deploy / deploy (push) Skipped
Build and deploy / sonarqube (push) Failing after 4m20s
Build and deploy / test-python (push) Successful in 6m59s
Build and deploy / test-js (push) Successful in 45s
Build and deploy / lint-python (push) Successful in 5m8s
Build and deploy / lint-js (push) Failing after 1m45s
Build and deploy / build-and-push (push) Skipped
Build and deploy / deploy (push) Skipped
Build and deploy / sonarqube (push) Failing after 4m20s
Retour utilisateur : "la modale est transparente". Cause : les tokens --doc-* (couleurs de fond/bordure/texte de l'editeur) sont definis uniquement sur .docEditor3 ; #docScenarioTreeModal est volontairement un FRERE de .docEditor3 dans le HTML (jamais un descendant, sinon position:fixed serait rogne par le overflow:hidden de main.content -- meme bug deja trouve le 20/09/2026 pour le bandeau d'outils), donc ne les heritait jamais -- var(--doc-bg-2) etc. retombaient sur transparent partout dans la modale (fond du dialogue, mais aussi toutes les couleurs d'accent/bordures/succes du graphe visuel). Duplique la definition des tokens --doc-* sur #docScenarioTreeModal (meme valeurs, meme variante [data-theme="light"]) plutot que de deplacer la modale dans le DOM. forgeDocApplyTheme pose desormais le meme data-theme sur les deux elements pour qu'ils restent synchronises. Verifie via simulation DOM reelle (jsdom) : les deux elements recoivent bien le meme data-theme apres un changement de theme. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5
parent
d92f75a803
commit
0babad5018
@@ -21,7 +21,20 @@ body.objectEditBody > main.content {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.docEditor3 {
|
||||
/* La modale (#docScenarioTreeModal) partage ces tokens --doc-* MAIS
|
||||
reste volontairement un FRÈRE de .docEditor3 dans le HTML (jamais un
|
||||
descendant) : main.content (voir body.objectEditBody dans
|
||||
static/style.css) a déjà `overflow:hidden`, qui ROGNE VISUELLEMENT
|
||||
tout descendant `position:fixed` à sa propre boîte (même bug déjà
|
||||
trouvé le 20/09/2026 pour le bandeau d'outils, voir plus bas) — un
|
||||
`position:fixed` doit donc rester un frère de .docEditor3, jamais un
|
||||
enfant, pour couvrir le VRAI viewport. D'où la duplication de ce
|
||||
sélecteur ici plutôt qu'un simple héritage de variables CSS (qui ne
|
||||
franchit pas la frontière DOM entre frères) — voir aussi
|
||||
forgeDocApplyTheme (static/document/js/document-editor.js), qui pose
|
||||
le même data-theme sur les deux éléments. */
|
||||
.docEditor3,
|
||||
#docScenarioTreeModal {
|
||||
--doc-bg: var(--forge-bg);
|
||||
--doc-bg-2: var(--forge-bg-secondary);
|
||||
--doc-card: var(--forge-card);
|
||||
@@ -37,7 +50,9 @@ body.objectEditBody > main.content {
|
||||
--doc-quiz-danger-bg: rgb(255 95 46 / 12%);
|
||||
--doc-quiz-danger-border: #ff5f2e;
|
||||
--doc-quiz-danger-text: #ffb3a0;
|
||||
}
|
||||
|
||||
.docEditor3 {
|
||||
/* Remplit main.content (voir body.objectEditBody dans static/style.css :
|
||||
`main.content` y est déjà `flex:1 1 auto; min-height:0; overflow:hidden;
|
||||
display:flex; flex-direction:column;`) — jamais `position:fixed` : cet
|
||||
@@ -56,7 +71,8 @@ body.objectEditBody > main.content {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
||||
}
|
||||
|
||||
.docEditor3[data-theme="light"] {
|
||||
.docEditor3[data-theme="light"],
|
||||
#docScenarioTreeModal[data-theme="light"] {
|
||||
--doc-bg: #f6f5f2;
|
||||
--doc-bg-2: #fff;
|
||||
--doc-card: #fff;
|
||||
@@ -72,7 +88,8 @@ body.objectEditBody > main.content {
|
||||
--doc-quiz-danger-text: #7a1418;
|
||||
}
|
||||
|
||||
.docEditor3 * {
|
||||
.docEditor3 *,
|
||||
#docScenarioTreeModal * {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
@@ -1411,6 +1428,8 @@ img.docImage {
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 24px;
|
||||
color: var(--doc-text);
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
||||
}
|
||||
|
||||
.docModalBackdrop.is-open {
|
||||
|
||||
Reference in New Issue
Block a user