Skip to content

Commit

Permalink
Fix a max-width to the project name field in order to not fusion with…
Browse files Browse the repository at this point in the history
… it's neighbour + add a tooltip to display the full project name when mouse is over the button project name genouest#559
  • Loading branch information
BobLamarley committed Dec 5, 2024
1 parent 9c65557 commit fecc0e3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
10 changes: 9 additions & 1 deletion manager2/src/app/admin/projects/projects.component.css
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@

.project-name {
display: inline-block;
max-width: 115px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
vertical-align: middle;
cursor: pointer;
}
9 changes: 7 additions & 2 deletions manager2/src/app/admin/projects/projects.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,13 @@ <h3>All projects</h3>
</ng-template>
<ng-template pTemplate="body" let-project>
<tr>
<td><a routerLink="/admin/project/{{project.id}}"><span class="p-button p-button-sm p-button-primary">{{project.id}}</span></a></td>
<td><a routerLink="/user/{{project.owner}}"><span class="p-button p-button-sm p-button-primary">{{project.owner}}</span></a></td>
<td>
<a routerLink="/admin/project/{{project.id}}">
<span class="p-button p-button-sm p-button-primary project-name" [title]="project.id">
{{project.id}}
</span>
</a>
</td> <td><a routerLink="/user/{{project.owner}}"><span class="p-button p-button-sm p-button-primary">{{project.owner}}</span></a></td>
<td *ngIf="!config.project || config.project.enable_group">{{project.group}}</td>
<td>{{project.path}}</td>
<td><span *ngIf="project.current_size">{{project.current_size}}&#47;</span>{{project.size}}
Expand Down

0 comments on commit fecc0e3

Please sign in to comment.