diff --git a/ui/ui-frontend/projects/pastis/src/app/profile/edit-profile/file-tree/file-tree.component.html b/ui/ui-frontend/projects/pastis/src/app/profile/edit-profile/file-tree/file-tree.component.html index 4fa28973ff1cd9cae64e188d34773c7bad710a3b..73cf15c2209936db8dc18d9240d86474176b396e 100644 --- a/ui/ui-frontend/projects/pastis/src/app/profile/edit-profile/file-tree/file-tree.component.html +++ b/ui/ui-frontend/projects/pastis/src/app/profile/edit-profile/file-tree/file-tree.component.html @@ -35,28 +35,30 @@ <!--Root children with children--> <span *ngIf="node.children.length && node.name !== rootElementName && isPartOfCollection(node) && shouldBeOnTab(node) && !isAttribute(node)" - [ngStyle]="{'margin-left': calculateNodePosition(node) + 'px'}" (click)="updateMedataTable(node)"> - - <button *ngIf="isElementComplexAndHasChildren(node)" + (click)="updateMedataTable(node)"> + <div class="divTests" [ngStyle]="{'margin-left': calculateNodePosition(node) + 'px' , 'width': '350px' }"> + <button *ngIf="isElementComplexAndHasChildren(node)" mat-icon-button matTreeNodeToggle class="pastis-chevron-icon" (click)="updateMedataTable(node)"> <mat-icon>{{nestedTreeControl.isExpanded(node) ? 'expand_more' : 'chevron_right'}}</mat-icon> - </button> - <span class="pastis-tree-node-name"> - <span class="text text-medium" - [ngStyle]="{'color': selectedItem(node) }">{{onResolveName(node)}}</span> - <span *ngIf="node.name === 'ArchiveUnit'" - style="float: right;" - tooltip="Ajouter une UA" - tooltip-class="pastis-tooltip-class"> - <!--Button plus--> - <button class="pastis-btn-add-ua" *ngIf="!puaMode" (click)= "addArchiveUnit(node)"> - <i class="vitamui-icon vitamui-icon-add" style="color: var(--vitamui-primary);"></i> - <span class="pastis-btn-add-ua-text">Ajouter une ua</span> - </button> + </button> + <span class="pastis-tree-node-name"> + <span class="text text-medium" + [ngStyle]="{'color': selectedItem(node) }">{{onResolveName(node)}}</span> + <span *ngIf="node.name === 'ArchiveUnit'" + style="float: right;" + tooltip="Ajouter une UA" + tooltip-class="pastis-tooltip-class"> + <!--Button plus--> + <button class="pastis-btn-add-ua" *ngIf="!puaMode" (click)= "addArchiveUnit(node)"> + <i class="vitamui-icon vitamui-icon-add" style="color: var(--vitamui-primary);"></i> + <span class="pastis-btn-add-ua-text">Ajouter une ua</span> + </button> + </span> </span> - </span> + </div> + <mat-divider class="pastis-divider"></mat-divider> </span> diff --git a/ui/ui-frontend/projects/pastis/src/app/profile/edit-profile/file-tree/file-tree.component.scss b/ui/ui-frontend/projects/pastis/src/app/profile/edit-profile/file-tree/file-tree.component.scss index 0d8363421de4f2b147567f6dacac88245d148598..a17476b5d8ee47dd244a8680d5501f5c24964210 100644 --- a/ui/ui-frontend/projects/pastis/src/app/profile/edit-profile/file-tree/file-tree.component.scss +++ b/ui/ui-frontend/projects/pastis/src/app/profile/edit-profile/file-tree/file-tree.component.scss @@ -117,7 +117,7 @@ } .pastis-divider{ - max-width: 400px; + max-width: 100%; height: 1px; //float: right; //margin-top: -4px; @@ -187,7 +187,6 @@ .pastis-btn-add-ua{ background-color: transparent; border: none; - margin-right: 20px; } .pastis-btn-add-ua-text{ color: map-get($colors, 'primary-500');