mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-21 02:46:04 +00:00
Add team-grouping hint to friends panel
Surface why a player would want to add friends: a small info card at the top of the panel noting that friends are placed on the same team.
This commit is contained in:
@@ -224,8 +224,21 @@ export class FriendsList extends LitElement {
|
||||
|
||||
return html`
|
||||
<div class="flex flex-col gap-6">
|
||||
${this.renderAddSection()} ${this.renderRequestsSection()}
|
||||
${this.renderFriendsSection()}
|
||||
${this.renderTeamInfo()} ${this.renderAddSection()}
|
||||
${this.renderRequestsSection()} ${this.renderFriendsSection()}
|
||||
</div>
|
||||
`;
|
||||
}
|
||||
|
||||
private renderTeamInfo(): TemplateResult {
|
||||
return html`
|
||||
<div
|
||||
class="bg-blue-500/10 border border-blue-500/30 rounded-xl p-3 flex items-center gap-3"
|
||||
>
|
||||
<span class="text-blue-400 text-lg shrink-0">🛡️</span>
|
||||
<p class="text-sm text-white/80">
|
||||
${translateText("friends.team_info")}
|
||||
</p>
|
||||
</div>
|
||||
`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user