From 10b055adb6bf05101ada5288566a55f7739727ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Charvet=20=E9=BB=91=E7=93=9C?= Date: Tue, 11 Jun 2024 20:17:13 +0100 Subject: [PATCH 1/3] Wrap the content into a container --- .../account/profile/contributor.html.heex | 74 ++++++++++--------- 1 file changed, 38 insertions(+), 36 deletions(-) diff --git a/lib/teiserver_web/live/account/profile/contributor.html.heex b/lib/teiserver_web/live/account/profile/contributor.html.heex index 5cec833f9..a5ec8f782 100644 --- a/lib/teiserver_web/live/account/profile/contributor.html.heex +++ b/lib/teiserver_web/live/account/profile/contributor.html.heex @@ -12,51 +12,53 @@ } -
-
-

User flag

- <%= if @show_flag_config do %> - You can enter any - - ISO Country code - - and even a few extra ones.

- Your current country code is: "<%= @country_code %>". -

+
+
+
+

User flag

+ <%= if @show_flag_config do %> + You can enter any + + ISO Country code + + and even a few extra ones.

+ Your current country code is: "<%= @country_code %>". +

- + /> - <%= if @error_message do %> -
- <%= @error_message %> + <%= if @error_message do %> +
+ <%= @error_message %> +
+ <% end %> + +
+ +
+ Revert to <%= @country_code %> +
+     + +
Clear +
+     + +
Save changes +
+ <% else %> + You have currently set your profile to hide your flag and thus cannot select a custom one. To undo this please + settings page + to alter this. <% end %> - -
- -
- Revert to <%= @country_code %> -
-     - -
Clear -
-     - -
Save changes -
-
- <% else %> - You have currently set your profile to hide your flag and thus cannot select a custom one. To undo this please - settings page - to alter this. - <% end %> +
From 340238d4a0e91c7ce1c78409daa0edc0d48b6044 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Charvet=20=E9=BB=91=E7=93=9C?= Date: Tue, 11 Jun 2024 20:16:44 +0100 Subject: [PATCH 2/3] Swap the icons for free ones A few that were missed during https://github.com/beyond-all-reason/teiserver/pull/313 --- .../live/account/profile/contributor.html.heex | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/teiserver_web/live/account/profile/contributor.html.heex b/lib/teiserver_web/live/account/profile/contributor.html.heex index a5ec8f782..7d062f85f 100644 --- a/lib/teiserver_web/live/account/profile/contributor.html.heex +++ b/lib/teiserver_web/live/account/profile/contributor.html.heex @@ -19,7 +19,7 @@ <%= if @show_flag_config do %> You can enter any - ISO Country code + ISO Country code and even a few extra ones.

Your current country code is: "<%= @country_code %>". @@ -42,12 +42,12 @@
-
+
Revert to <%= @country_code %>
    -
Clear +
Clear
    From c5bbc69e975e6a666be57c86e1cd2628fb04b83e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Sta=C5=84czak-Marikin?= Date: Wed, 12 Jun 2024 12:52:25 +0200 Subject: [PATCH 3/3] Apply mix format --- .../live/account/profile/contributor.html.heex | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/teiserver_web/live/account/profile/contributor.html.heex b/lib/teiserver_web/live/account/profile/contributor.html.heex index 7d062f85f..c2f2cfe05 100644 --- a/lib/teiserver_web/live/account/profile/contributor.html.heex +++ b/lib/teiserver_web/live/account/profile/contributor.html.heex @@ -26,12 +26,12 @@

<%= if @error_message do %>