From bc6d03734120f524e496a8093a17a67d19154dbd Mon Sep 17 00:00:00 2001 From: d11n Date: Wed, 10 Jul 2024 17:12:58 +0200 Subject: [PATCH] POS: Improve padding on mobile and unify card look with tiles (#6088) On mobile, the description content was lacking horizontal padding. This adjusts it while also unifying the cards to work like the tiles on checkout: Below 400px width, we pull the to the edges of the screen, which makes it looks nicer and display better than as if they'd also have an outer margin. Adjustments take effect on all POS view variants. --- .../Shared/PointOfSale/Public/Cart.cshtml | 6 +++--- .../Shared/PointOfSale/Public/Print.cshtml | 4 ++-- .../Shared/PointOfSale/Public/Static.cshtml | 6 +++--- BTCPayServer/wwwroot/main/site.css | 2 ++ BTCPayServer/wwwroot/pos/cart.css | 18 ++++++++++++------ BTCPayServer/wwwroot/pos/common.css | 14 ++++++++++++++ 6 files changed, 36 insertions(+), 14 deletions(-) diff --git a/BTCPayServer/Views/Shared/PointOfSale/Public/Cart.cshtml b/BTCPayServer/Views/Shared/PointOfSale/Public/Cart.cshtml index d933706d1..d64453640 100644 --- a/BTCPayServer/Views/Shared/PointOfSale/Public/Cart.cshtml +++ b/BTCPayServer/Views/Shared/PointOfSale/Public/Cart.cshtml @@ -78,12 +78,12 @@ buttonText = buttonText.Replace("{0}", formatted).Replace("{Price}", formatted); var categories = new JArray(item.Categories ?? new object[] { });
-
+
@if (!string.IsNullOrWhiteSpace(item.Image)) { @item.Title } -
+
@Safe.Raw(item.Title)
@if (item.PriceType == ViewPointOfSaleViewModel.ItemPriceType.Topup || item.Price == 0) @@ -108,7 +108,7 @@
@if (inStock) { -