Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ProtonMail/WebClients.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormmso <mmso@mmso.se>2022-11-07 16:48:34 +0300
committermmso <mmso@mmso.se>2022-11-07 16:48:45 +0300
commitf1215cb3a7b0ca8b7e28bb909950de763a3d406b (patch)
treeff6e86eae62e92c8f9600f9c7cee6d138c89951e
parent3a33424972da89f3e64e23b15b515c6de31e1bb9 (diff)
Move free months in cycle selector
-rw-r--r--packages/components/containers/payments/subscription/SubscriptionCycleSelector.tsx21
1 files changed, 10 insertions, 11 deletions
diff --git a/packages/components/containers/payments/subscription/SubscriptionCycleSelector.tsx b/packages/components/containers/payments/subscription/SubscriptionCycleSelector.tsx
index 13b603ce33..520c498f8e 100644
--- a/packages/components/containers/payments/subscription/SubscriptionCycleSelector.tsx
+++ b/packages/components/containers/payments/subscription/SubscriptionCycleSelector.tsx
@@ -70,7 +70,15 @@ const CycleItemView = ({
<>
<div className="flex-item-fluid pl0-5">
<div className="flex flex-align-items-center">
- <strong className="text-lg flex-item-fluid mr1">{text}</strong>
+ <div className="flex-item-fluid-auto mr1">
+ <strong className="text-lg">{text}</strong>
+ {freeMonths > 0 && (
+ <span className="color-success">
+ {` + `}
+ {getMonthFreeText(freeMonths)}
+ </span>
+ )}
+ </div>
<strong className="text-lg flex-item-noshrink color-primary">
{c('Subscription price').t`For`}
<Price className="ml0-25" currency={currency}>
@@ -79,7 +87,7 @@ const CycleItemView = ({
</strong>
</div>
<div className="flex flex-align-items-center">
- <span className="color-weak flex flex-item-fluid">
+ <span className="color-weak flex flex-item-fluid-auto">
<Price currency={currency} suffix={monthlySuffix}>
{totalPerMonth}
</Price>
@@ -88,15 +96,6 @@ const CycleItemView = ({
{getDiscountPrice(discount, currency)}
</span>
</div>
- {freeMonths > 0 && (
- <div className="flex flex-align-items-center">
- <div className="flex-item-fluid"></div>
- <span className="color-success flex flex-item-noshrink">
- {` + `}
- {getMonthFreeText(freeMonths)}
- </span>
- </div>
- )}
</div>
</>
);