fix: 4 UI fixes for package display
Build and Deploy to Kubernetes / build-and-deploy (push) Failing after 2m54s

1. Toman/Rial mismatch — Price from server is in Rial, now divides by 10 for correct Toman display
2. ضریب تخفیف → ضریب اعتبار label change in dialog + packages page
3. Back button already functional (ArrowForward in TitleContent) — verified
4. HTML rendering in package description via MarkupString
This commit is contained in:
masoodafar-web
2026-02-27 20:44:18 +03:30
parent a3681a8bcd
commit 3c1a8ffd53
3 changed files with 5 additions and 4 deletions
@@ -89,7 +89,7 @@
{
<MudStack Row="true" Spacing="1" AlignItems="AlignItems.Center">
<MudIcon Icon="@Icons.Material.Filled.Check" Size="Size.Small" Color="Color.Primary" />
<MudText Typo="Typo.caption">ضریب تخفیف: @package.DiscountMultiplier.ToString("F1")x</MudText>
<MudText Typo="Typo.caption">ضریب اعتبار: @package.DiscountMultiplier.ToString("F1")x</MudText>
</MudStack>
}
@if (package.MagicWalletMultiplier > 0)
@@ -130,7 +130,7 @@
{
<MudText Typo="Typo.caption" Class="mud-text-secondary"
Style="display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;">
@pkg.Description
@((MarkupString)pkg.Description)
</MudText>
}
@* Key features *@
@@ -146,7 +146,7 @@
{
<MudText Typo="Typo.caption" Class="mud-text-secondary">
<MudIcon Icon="@Icons.Material.Filled.Discount" Size="Size.Small" Class="me-1" Style="font-size:.85rem;vertical-align:middle;" />
ضریب تخفیف: @pkg.DiscountMultiplier.ToString("F1")x
ضریب اعتبار: @pkg.DiscountMultiplier.ToString("F1")x
</MudText>
}
@if (pkg.SupportsDayaPurchase)
@@ -20,7 +20,8 @@ public record PackageDto(
bool SupportsDayaPurchase = false,
bool SupportsDirectPurchase = false)
{
public string FormattedPrice => string.Format("{0:N0} تومان", Price);
/// <summary>قیمت به تومان — مقدار Price از سرور به ریال است</summary>
public string FormattedPrice => string.Format("{0:N0} تومان", Price / 10);
}
/// <summary>