From 9432bb26f884f6015b8ee3788032694b060a8197 Mon Sep 17 00:00:00 2001
From: Ryan <7389646+ryanbarlow97@users.noreply.github.com>
Date: Wed, 6 May 2026 23:06:33 +0100
Subject: [PATCH] [bugfix] fixes border around clans ui (#3873)
## Description:
fixes border around clans ui
also fixes weird padding:
what it should be:
## Please complete the following:
- [x] I have added screenshots for all UI updates
- [x] I process any text displayed to the user through translateText()
and I've added it to the en.json file
- [x] I have added relevant tests to the test directory
- [x] I confirm I have thoroughly tested these changes and take full
responsibility for any bugs introduced
## Please put your Discord username so you can be contacted if a bug or
regression is found:
w.o.n
---
resources/lang/en.json | 1 +
src/client/ClanModal.ts | 67 +++-
src/client/UserSettingModal.ts | 4 +-
src/client/components/baseComponents/Modal.ts | 7 +-
src/client/components/clan/ClanBansView.ts | 211 +++++------
src/client/components/clan/ClanBrowseView.ts | 5 +-
src/client/components/clan/ClanDetailView.ts | 99 ++---
src/client/components/clan/ClanManageView.ts | 357 ++++++++----------
.../components/clan/ClanMyRequestsView.ts | 90 ++---
.../components/clan/ClanRequestsView.ts | 155 ++++----
src/client/components/clan/ClanShared.ts | 3 -
.../components/clan/ClanTransferView.ts | 198 +++++-----
12 files changed, 551 insertions(+), 646 deletions(-)
diff --git a/resources/lang/en.json b/resources/lang/en.json
index cd881bee7..eba44de3c 100644
--- a/resources/lang/en.json
+++ b/resources/lang/en.json
@@ -310,6 +310,7 @@
"ban": "Ban",
"unban": "Unban",
"banned_players": "Banned Players",
+ "banned_players_count": "{count, plural, one {# banned player} other {# banned players}}",
"no_bans": "No banned players.",
"ban_reason_prompt": "Ban reason (optional, max 200 characters):",
"confirm_ban": "Are you sure you want to ban this player? They will be removed from the clan and unable to rejoin.",
diff --git a/src/client/ClanModal.ts b/src/client/ClanModal.ts
index e611fc424..1aebed5dd 100644
--- a/src/client/ClanModal.ts
+++ b/src/client/ClanModal.ts
@@ -73,7 +73,7 @@ export class ClanModal extends BaseModal {
onBack: () => this.close(),
ariaLabel: translateText("common.back"),
})
- : null;
+ : this.renderSubViewHeader();
return html`
this.handleTabChange(key as Tab)}
>
${header ? html`