From 76723e6739693baf3b4020c3e60344eb99c7dfe4 Mon Sep 17 00:00:00 2001 From: yanir <100792995+Boostry123@users.noreply.github.com> Date: Fri, 5 Sep 2025 21:21:53 +0300 Subject: [PATCH] Minor changes to the flag-input-modal (#1975) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Description: Noticed things were a bit not centered and title had Modal in it. image
image
---------------------------------------------------------------------------------------------------------------------------
image
image ## 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: boostry --- resources/lang/en.json | 5 +++++ src/client/FlagInput.ts | 12 +++++++++--- src/client/FlagInputModal.ts | 23 +++++++++++++++-------- src/client/index.html | 2 +- 4 files changed, 30 insertions(+), 12 deletions(-) diff --git a/resources/lang/en.json b/resources/lang/en.json index 395cee574..28481e669 100644 --- a/resources/lang/en.json +++ b/resources/lang/en.json @@ -627,6 +627,11 @@ "grogu": "Grogu" } }, + "flag_input": { + "title": "Select Flag", + "button_title": "Pick a flag!", + "search_flag": "Search..." + }, "spawn_ad": { "loading": "Loading advertisement..." }, diff --git a/src/client/FlagInput.ts b/src/client/FlagInput.ts index 045eda365..77fabef46 100644 --- a/src/client/FlagInput.ts +++ b/src/client/FlagInput.ts @@ -2,6 +2,8 @@ import { LitElement, css, html } from "lit"; import { customElement, state } from "lit/decorators.js"; import { renderPlayerFlag } from "../core/CustomFlag"; import { FlagSchema } from "../core/Schemas"; +import { translateText } from "./Utils"; + const flagKey: string = "flag"; @customElement("flag-input") @@ -71,12 +73,16 @@ export class FlagInput extends LitElement {
diff --git a/src/client/FlagInputModal.ts b/src/client/FlagInputModal.ts index 777dd25b3..8c5a2939d 100644 --- a/src/client/FlagInputModal.ts +++ b/src/client/FlagInputModal.ts @@ -1,6 +1,7 @@ import { LitElement, html } from "lit"; import { customElement, query, state } from "lit/decorators.js"; import Countries from "./data/countries.json"; +import { translateText } from "./Utils"; @customElement("flag-input-modal") export class FlagInputModal extends LitElement { @@ -18,14 +19,20 @@ export class FlagInputModal extends LitElement { render() { return html` - - + +
+ +
+
diff --git a/src/client/index.html b/src/client/index.html index 5cc19cd5c..eafd603bd 100644 --- a/src/client/index.html +++ b/src/client/index.html @@ -198,7 +198,7 @@
- +