fix: allow returning from player detail to results

This commit is contained in:
bisco
2026-06-03 23:15:30 +02:00
parent f44a07f231
commit f87f62f111
4 changed files with 66 additions and 9 deletions
+8 -5
View File
@@ -81,7 +81,7 @@
<p *ngIf="errorMessage" class="alert">{{ errorMessage }}</p>
<section class="workspace" aria-label="Scouting workspace">
<section class="workspace" [class.detail-open]="selectedPlayer" aria-label="Scouting workspace">
<div class="table-wrap">
<table>
<thead>
@@ -129,10 +129,13 @@
</div>
<aside class="detail" *ngIf="selectedPlayer">
<div>
<p class="eyebrow">Selected profile</p>
<h2>{{ selectedPlayer.name }}</h2>
<p class="role">{{ selectedPlayer.position }} · {{ selectedPlayer.role || 'Role pending' }}</p>
<div class="detail-header">
<div>
<p class="eyebrow">Selected profile</p>
<h2>{{ selectedPlayer.name }}</h2>
<p class="role">{{ selectedPlayer.position }} · {{ selectedPlayer.role || 'Role pending' }}</p>
</div>
<button type="button" class="secondary compact" (click)="returnToResults()">Back to results</button>
</div>
<div class="profile-strip">
<span>{{ selectedPlayer.nationality || '-' }}</span>