Skip to content

Commit 5a9ffb2

Browse files
committed
fix: show per dashboard text on on products with many dashboards
See: BEDS-1257
1 parent 3fb0209 commit 5a9ffb2

File tree

3 files changed

+19
-11
lines changed

3 files changed

+19
-11
lines changed

frontend/components/pricing/PremiumFeature.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,11 @@ defineProps<Props>()
135135
}
136136
}
137137
138+
.tooltip {
139+
display: flex;
140+
align-items: center;
141+
}
142+
138143
.tooltip-content {
139144
width: 130px;
140145
text-align: left;

frontend/components/pricing/PremiumProductBox.vue

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,9 @@ const mainFeatures = computed<Feature[]>(() => {
201201
},
202202
{
203203
available: true,
204-
name: $t('pricing.premium_product.max_effective_balance', { amount: maxDashboardEffectiveBalance }),
204+
name: product.premium_perks.validator_dashboards === 1
205+
? $t('pricing.premium_product.max_effective_balance', { amount: maxDashboardEffectiveBalance })
206+
: $t('pricing.premium_product.max_effective_balance_per_dashboard', { amount: maxDashboardEffectiveBalance }),
205207
percentage: percentages.value.effectiveBalancePerDashboard,
206208
subtext: $t('pricing.per_min_validator_deposit', {
207209
amount: formatFiatCurrency(Number(pricePerOldMaxEffectiveBalance.value), {
@@ -462,16 +464,6 @@ const minorFeatures = computed<Feature[]>(() => {
462464
text-align: left;
463465
}
464466
465-
.info-badge {
466-
background-color: var(--subcontainer-background);
467-
font-size: 0.7rem;
468-
padding: 0.25rem 0.15rem;
469-
border-radius: 4px;
470-
gap: 0.25rem;
471-
justify-content: center;
472-
margin-bottom: 0.75rem;
473-
}
474-
475467
.main-features-container {
476468
gap: 15px;
477469
margin-bottom: 18px;
@@ -484,6 +476,16 @@ const minorFeatures = computed<Feature[]>(() => {
484476
}
485477
}
486478
479+
.info-badge {
480+
background-color: var(--subcontainer-background);
481+
font-size: 0.7rem;
482+
padding: 0.25rem 0.15rem;
483+
border-radius: 4px;
484+
gap: 0.25rem;
485+
justify-content: center;
486+
margin-bottom: 0.75rem;
487+
}
488+
487489
.submit-button--downgrade {
488490
background-color: transparent;
489491
color: var(--text-color-discreet);

frontend/i18n/locales/en.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -982,6 +982,7 @@
982982
"coming_soon": "(coming soon)",
983983
"manage_dashboard_via_api": "Manage Dashboard via API",
984984
"max_effective_balance": "{amount} Max Stake",
985+
"max_effective_balance_per_dashboard": "{amount} Max Stake per Dashboard",
985986
"max_effective_balance_tooltip": "Alternative term: {amount} maximum effective balance",
986987
"mobile_app_widget": "Mobile App Widget",
987988
"no_ads": "No Ads",

0 commit comments

Comments
 (0)