From 7e83904ee87388891b3b76fe19f0c4f3a55eb0c5 Mon Sep 17 00:00:00 2001 From: sashaqred Date: Wed, 15 Apr 2020 13:43:06 +0300 Subject: [PATCH] fix: limit front card width to prevent map overflow before repaint --- .../profit-card/profit-card.component.scss | 22 ++++++++++++------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/src/app/pages/e-commerce/profit-card/profit-card.component.scss b/src/app/pages/e-commerce/profit-card/profit-card.component.scss index ed0bf32c..70121041 100644 --- a/src/app/pages/e-commerce/profit-card/profit-card.component.scss +++ b/src/app/pages/e-commerce/profit-card/profit-card.component.scss @@ -10,16 +10,22 @@ cursor: pointer; } - ::ng-deep .flipped { - .back-container { - .flip-icon { - transform: scaleX(-1); - } + ::ng-deep { + .front-container { + max-width: 100%; } - .front-container { - .flip-icon { - display: none; + .flipped { + .back-container { + .flip-icon { + transform: scaleX(-1); + } + } + + .front-container { + .flip-icon { + display: none; + } } } }