Ajout des personnage dans la sidebar de la campagne
This commit is contained in:
@@ -29,6 +29,9 @@
|
||||
|
||||
<!-- Template récursif : un noeud d'arbre rend son bouton, puis ses enfants via ce même template -->
|
||||
<ng-template #treeNode let-item let-level="level">
|
||||
<div class="tree-section-header" *ngIf="level === 0 && item.sectionHeaderBefore">
|
||||
{{ item.sectionHeaderBefore }}
|
||||
</div>
|
||||
<div class="tree-item" [style.padding-left.px]="level * 12">
|
||||
<div class="tree-row">
|
||||
<button
|
||||
|
||||
@@ -110,6 +110,23 @@
|
||||
padding: 0.25rem 0;
|
||||
}
|
||||
|
||||
// En-tête de section — groupe visuellement les nœuds racines (ex: Personnages / Narration).
|
||||
// Un filet au-dessus crée la séparation ; pas de filet pour la première section
|
||||
// (le titre suffit) — on cible ça via :not(:first-child).
|
||||
.tree-section-header {
|
||||
font-size: 0.68rem;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.06em;
|
||||
text-transform: uppercase;
|
||||
color: #9ca3af;
|
||||
padding: 0.6rem 0.5rem 0.3rem;
|
||||
}
|
||||
.tree > .tree-section-header:not(:first-child) {
|
||||
border-top: 1px solid #374151;
|
||||
margin-top: 0.35rem;
|
||||
padding-top: 0.6rem;
|
||||
}
|
||||
|
||||
.tree-btn {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
Reference in New Issue
Block a user