feat(sidebar): restructure relationships section
- Members: current band members - Former Members: past members (with muted style) - Member Of: groups artist belongs to - Collaborators: collaboration relationships cc
This commit is contained in:
1 parent
e9039f9909
commit
53dbff219e
1 file changed
+37
-1
@@ -1904,7 +1904,7 @@
|
||||
{:else if hasRelationships}
|
||||
{#if mbRelationships && mbRelationships.members.length > 0}
|
||||
<div class="relationship-group">
|
||||
<span class="relationship-label">Band Members</span>
|
||||
<span class="relationship-label">Members</span>
|
||||
{#each mbRelationships.members as member}
|
||||
<button
|
||||
class="sidebar-artist-link"
|
||||
@@ -1916,6 +1916,20 @@
|
||||
{/each}
|
||||
</div>
|
||||
{/if}
|
||||
{#if mbRelationships && mbRelationships.pastMembers.length > 0}
|
||||
<div class="relationship-group">
|
||||
<span class="relationship-label">Former Members</span>
|
||||
{#each mbRelationships.pastMembers as member}
|
||||
<button
|
||||
class="sidebar-artist-link past-member"
|
||||
onclick={() => navigateToRelatedArtist(member.name)}
|
||||
>
|
||||
<User size={12} />
|
||||
{member.name}
|
||||
</button>
|
||||
{/each}
|
||||
</div>
|
||||
{/if}
|
||||
{#if mbRelationships && mbRelationships.groups.length > 0}
|
||||
<div class="relationship-group">
|
||||
<span class="relationship-label">Member Of</span>
|
||||
@@ -1930,6 +1944,20 @@
|
||||
{/each}
|
||||
</div>
|
||||
{/if}
|
||||
{#if mbRelationships && mbRelationships.collaborators.length > 0}
|
||||
<div class="relationship-group">
|
||||
<span class="relationship-label">Collaborators</span>
|
||||
{#each mbRelationships.collaborators as collab}
|
||||
<button
|
||||
class="sidebar-artist-link"
|
||||
onclick={() => navigateToRelatedArtist(collab.name)}
|
||||
>
|
||||
<User size={12} />
|
||||
{collab.name}
|
||||
</button>
|
||||
{/each}
|
||||
</div>
|
||||
{/if}
|
||||
{:else}
|
||||
<span class="placeholder-text">No relationships found</span>
|
||||
{/if}
|
||||
@@ -2068,6 +2096,14 @@
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.sidebar-artist-link.past-member {
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.sidebar-artist-link.past-member:hover {
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.relationship-group {
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user