From 9da597be86c49f1f822ca4bf9e8e0d96c306c92d Mon Sep 17 00:00:00 2001 From: WandererXII <43043181+WandererXII@users.noreply.github.com> Date: Mon, 1 Jul 2024 21:20:07 +0200 Subject: [PATCH] Change support text if patron --- app/views/lobby/home.scala | 15 ++++++++++----- ui/lobby/css/_support.scss | 2 +- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/app/views/lobby/home.scala b/app/views/lobby/home.scala index 578e87f540b92..505a742291a4e 100644 --- a/app/views/lobby/home.scala +++ b/app/views/lobby/home.scala @@ -144,11 +144,16 @@ object home { a(href := langHref(routes.Plan.index))( iconTag(patronIconChar), span(cls := "lobby__support__text")( - strong(trans.patron.donate()), - ctx.me map { u => - if (u.isPatron) span(trans.patron.thankYou()) - else span(trans.patron.becomePatron()) - } + if (ctx.me.exists(_.isPatron)) + frag( + strong(trans.patron.lishogiPatron()), + span(trans.patron.thankYou()) + ) + else + frag( + strong(trans.patron.donate()), + ctx.isAuth option span(trans.patron.becomePatron()) + ) ) ) ) diff --git a/ui/lobby/css/_support.scss b/ui/lobby/css/_support.scss index 65a9b6abac94b..93efd95e68fcc 100644 --- a/ui/lobby/css/_support.scss +++ b/ui/lobby/css/_support.scss @@ -39,7 +39,7 @@ $c-support: $c-brag; span { @extend %nowrap-ellipsis; display: block; - font-size: 1em; + font-size: 0.95em; } } }