1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-29 14:43:31 +00:00

[PM-29633]Discount badge misaligned on Subscription page for Organizations and MSP/BUP (#17924)

* Fix the discount

* Fix the spacing and alignment issue

* reverted unneeded change

* Changes for provider discount badge
This commit is contained in:
cyprain-okeke
2025-12-16 14:55:40 +01:00
committed by GitHub
parent 0c8c755404
commit d7a7f19abd
2 changed files with 14 additions and 9 deletions

View File

@@ -14,16 +14,18 @@
></app-subscription-status>
<ng-container *ngIf="userOrg.canEditSubscription">
<div class="tw-flex-col">
<strong class="tw-block tw-border-0 tw-border-b tw-border-solid tw-border-secondary-300"
>{{ "details" | i18n
}}<span
class="tw-ml-3"
<strong
class="tw-flex tw-items-center tw-gap-3 tw-border-0 tw-border-b tw-border-solid tw-border-secondary-300 tw-pb-2"
>
{{ "details" | i18n }}
<span
*ngIf="customerDiscount?.percentOff > 0 && !isSecretsManagerTrial()"
bitBadge
variant="success"
class="tw-inline-flex tw-items-center"
>{{ "providerDiscount" | i18n: customerDiscount?.percentOff }}</span
></strong
>
>
</strong>
<bit-table>
<ng-template body>
<ng-container *ngIf="subscription && !userOrg.isFreeOrg">

View File

@@ -11,11 +11,14 @@
<ng-container>
<div class="tw-flex-col">
<strong
class="tw-block tw-border-0 tw-border-b tw-border-solid tw-border-secondary-300 tw-pb-2"
>{{ "details" | i18n }} &#160;<span
class="tw-flex tw-items-center tw-gap-3 tw-border-0 tw-border-b tw-border-solid tw-border-secondary-300 tw-pb-2"
>
{{ "details" | i18n }}
<span
*ngIf="subscription.discountPercentage"
bitBadge
variant="success"
*ngIf="subscription.discountPercentage"
class="tw-inline-flex tw-items-center"
>{{ "providerDiscount" | i18n: subscription.discountPercentage }}</span
>
</strong>