From 3afffd37e9c4b6cf8ecc8d866032a00715754fe7 Mon Sep 17 00:00:00 2001 From: seria Date: Sat, 12 Oct 2024 15:23:46 +0800 Subject: [PATCH] imp: Slightly improve login page UI and texts --- hoyo_buddy/web_app/pages/login.py | 31 +++++++++++++++++-------------- l10n/en_US.yaml | 4 ++-- 2 files changed, 19 insertions(+), 16 deletions(-) diff --git a/hoyo_buddy/web_app/pages/login.py b/hoyo_buddy/web_app/pages/login.py index b8c3cf55..60727289 100644 --- a/hoyo_buddy/web_app/pages/login.py +++ b/hoyo_buddy/web_app/pages/login.py @@ -56,22 +56,25 @@ def __init__( ), title=ft.Text(user_data["username"]), ), - ft.Row( - [ - ft.FilledButton( - translator.translate( - LocaleStr(key="continue_button_label"), locale + ft.Container( + ft.Column( + [ + ft.FilledButton( + translator.translate( + LocaleStr(key="continue_button_label"), locale + ), + on_click=self.on_continue_button_click, ), - on_click=self.on_continue_button_click, - ), - ft.FilledTonalButton( - translator.translate( - LocaleStr(key="not_you_label"), locale + ft.TextButton( + translator.translate( + LocaleStr(key="not_you_label"), locale + ), + on_click=self.on_login_button_click, ), - on_click=self.on_login_button_click, - icon=ft.icons.DISCORD, - ), - ] + ], + spacing=8, + ), + margin=ft.margin.only(top=8), ), ] ) diff --git a/l10n/en_US.yaml b/l10n/en_US.yaml index ecad9e36..7f791c3e 100644 --- a/l10n/en_US.yaml +++ b/l10n/en_US.yaml @@ -702,5 +702,5 @@ lb_view_command_description: View leaderboards leaderboard_not_found: Leaderboard not found not_supported_by_enka_error_title: Not Supported by Enka Network Yet not_supported_by_enka_error_message: "{game} is not supported by [Enka Network](https://enka.cc) yet, so you cannot query a player's data with only the UID. Please add a {game} account with and try again." -currently_logged_in_as: "You are currently signed in as:" -not_you_label: Not you? Sign in with a different account +currently_logged_in_as: "You are currently logged in as:" +not_you_label: Not you? Click to login with a different account