From a5195afe05a5d1bba7a7feb08bca81e21f7703ea Mon Sep 17 00:00:00 2001
From: Jevy Larano <32891190+jrlarano@users.noreply.github.com>
Date: Sat, 18 May 2024 15:46:34 +0800
Subject: [PATCH] Add description and price placeholder
---
.../components/common/offer-overview.styl | 36 ++++++++++++++++++-
.../components/common/offer-overview.ts | 18 +++++++++-
2 files changed, 52 insertions(+), 2 deletions(-)
diff --git a/lib/kits/core-ui/components/common/offer-overview.styl b/lib/kits/core-ui/components/common/offer-overview.styl
index 68d46dd8..619d84aa 100644
--- a/lib/kits/core-ui/components/common/offer-overview.styl
+++ b/lib/kits/core-ui/components/common/offer-overview.styl
@@ -117,6 +117,22 @@
padding 0
display flex
+ .sgn-modal-close
+ position absolute
+ display inline-block
+ padding 0
+ min-width 0
+ width 34px
+ height 34px
+ background transparent
+ right 0.5rem
+ top 0.5rem
+ border-radius 100%
+
+ >svg
+ width 100%
+ height 100%
+
.sgn-popup-header
padding: 0.8rem 0 0.3rem 0
@@ -219,6 +235,25 @@
flex 1 1 auto
overflow hidden
+ .sgn-product-title
+ white-space nowrap
+ overflow hidden
+ text-overflow ellipsis
+ max-width 476px
+ font-weight 500
+ font-size 1.1rem
+
+ .sgn-product-description
+ white-space nowrap
+ overflow hidden
+ text-overflow ellipsis
+ max-width 476px
+ font-size 0.8rem
+
+ .sgn-product-price
+ font-weight 500
+ font-size 1.2rem
+
.sgn-offer-product-quantity-content
display flex
border 1px solid rgba(0, 0, 0, 0.12)
@@ -257,7 +292,6 @@
min-width 0
background transparent
-
.sgn__theme-dark
.sgn-offer-overview-popup
background #1c1c1e
diff --git a/lib/kits/core-ui/components/common/offer-overview.ts b/lib/kits/core-ui/components/common/offer-overview.ts
index 1b1270d1..986386d2 100644
--- a/lib/kits/core-ui/components/common/offer-overview.ts
+++ b/lib/kits/core-ui/components/common/offer-overview.ts
@@ -76,6 +76,9 @@ const defaultTemplateV2 = `\