]> _ Git - fluidbook-html5.git/commitdiff
wait #4696 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 23 Sep 2021 10:18:16 +0000 (12:18 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 23 Sep 2021 10:18:16 +0000 (12:18 +0200)
js/libs/fluidbook/cart/fluidbook.cart.joueclub2021.js
style/cart/grandpavois.less
style/cart/joueclub2021.less

index a4ca078ed0a62b625ba7d90f2022a457e04ca6f5..2abca1397e30dea83a3a0e04c0fa637fdb07abcd 100644 (file)
@@ -27,8 +27,19 @@ FluidbookCartJoueClub2021.prototype = {
         if (this.items.indexOf(ref) === -1) {
             this.items.push(ref);
             this.save();
+            return "Le jouet a été ajouté à votre liste de cadeaux";
+        } else {
+            this.removeFromCartByRef(ref);
+            return "Le jouet a été retiré de votre liste de cadeaux";
+        }
+
+    },
+
+    removeFromCartByRef: function (ref) {
+        var key = this.items.indexOf(ref);
+        if (key >= 0) {
+            this.removeFromCart(key)
         }
-        return "Le jouet a été ajouté à votre liste de cadeaux";
     },
 
     removeFromCart: function (key) {
index bd71e003933bf03c76760dd6b67244aec430b44d..f286416ff2cfef5e22cf8f48aad97aad3351284b 100644 (file)
 
 #grandpavoiscartprint {
   &.print {
+
+    &.ps.ps--active-y {
+      overflow: visible !important;
+      max-height: none !important;
+    }
+
     font-size: 8px;
 
     .ps__rail-y, .ps__rail-x {
index 9db59c49daa0d063293cfb2c55383c8ba90f1d61..f05b9fe0b5adbde654dd5521c850b4be8f811e15 100644 (file)
   border-radius: 8px;
 }
 
-[data-type="7"] {
+[data-type="12"] {
   svg {
     pointer-events: none;
+    width: 100%;
+    height: 100%;
   }
 
   .on {
 
 
   &.print {
+    &.ps.ps--active-y {
+      overflow: visible !important;
+      max-height: none !important;
+    }
     font-size: 8px;