]> _ Git - fluidbook-html5.git/commitdiff
wait #7898 @1:40
authorsoufiane <soufiane@cubedesigners.com>
Tue, 20 Jan 2026 15:44:20 +0000 (16:44 +0100)
committersoufiane <soufiane@cubedesigners.com>
Tue, 20 Jan 2026 15:44:20 +0000 (16:44 +0100)
js/libs/fluidbook/cart/fluidbook.cart.kimplay.js
js/libs/fluidbook/fluidbook.menu.js
style/cart/kimplay.less

index e67ea32ced5f1fb5a95c7b66cf52b5e6fd0407d5..026e27849c0dd0fdadfd6794b75cc808ef4f2531 100644 (file)
@@ -21,6 +21,7 @@ FluidbookCartKimplay.prototype = {
         $(document).on(this.fluidbook.input.clickEvent, '#open-request', function () {
             $this.fluidbook.menu.quickCloseView();
             $this.getContactForm();
+            $this.fluidbook.resize.resizeView();
             return false;
         });
 
@@ -133,7 +134,6 @@ FluidbookCartKimplay.prototype = {
     },
 
     updateIcon: function () {
-        console.log(this.getItemsNumbers());
         $(this.fluidbook).trigger('fluidbook.cart.updateIcon', {number: this.getItemsNumbers()});
     },
 
@@ -154,7 +154,7 @@ FluidbookCartKimplay.prototype = {
         }
 
         var $this = this;
-        var content = '<table id="kimplaycarttable" class="cart-items" cellpadding="0" cellspacing="0">';
+        var content = '<div id="wrap-kimplaycart"><table id="kimplaycarttable" class="cart-items" cellpadding="0" cellspacing="0">';
         content += '<thead>';
         content += '<tr>';
         content += '<th></th>';
@@ -190,7 +190,7 @@ FluidbookCartKimplay.prototype = {
             content += '</tr>';
         });
         content += '</tbody>';
-        content += '</table>';
+        content += '</table></div>';
         content += '<div class="cart-footer">';
         content += '<div class="fonctions">';
         content += '<a href="#/closeview" class="completeSelection" role="button" aria-label="' + this.fluidbook.l10n.__('close') + '">' + this.fluidbook.l10n.__('complĂ©ter ma sĂ©lection') + '</a>';
index 7ad6d250c4cae85a93c05fdb76eea3a1cad592a4..3b9273c7361e0b4aeb03098c63011a902040d0b1 100644 (file)
@@ -963,6 +963,7 @@ FluidbookMenu.prototype = {
                 }
                 break;
             case 'cart':
+            case 'cart-kimplay-sendcart':
                 w = this.fluidbook.cart.getMenuWidth();
                 h = this.fluidbook.cart.getMenuHeight();
                 if (ww < w) {
index ab56342d83ce56d066ef87f045f5a139738486ce..d892d7fc62f5b8a300c769cde4da41298a7abf2e 100644 (file)
@@ -1,3 +1,13 @@
+@breakpoint: ~"(max-width: 1024px)";
+
+#menu_cart {
+  width: max-content;
+
+  .menu-item-title {
+    margin-right: 0;
+  }
+}
+
 .link a.active[data-cart-ref] {
   background-color: rgba(0, 255, 0, 0.5);
 }
     font-weight: bold;
     display: flex;
     justify-content: flex-end;
+    gap: 10px;
+
+    @media @breakpoint {
+      flex-direction: column;
+      padding-left: 0;
+    }
+
+    a {
+      margin: 0
+    }
   }
 
   input, textarea {
     width: auto;
     padding: 16px 25px;
     height: 45px;
-    margin-left: 10px;
     vertical-align: top;
   }
 
     text-transform: initial;
     line-height: 20px;
     max-width: 367px;
+
+    @media @breakpoint {
+      max-width: 100%;
+    }
   }
 }
 
+[data-menu="cart"].fs .cart-footer {
+  position: initial;
+}
+
 .mview[data-menu="cart-kimplay-qty"] {
   width: 605px;
   height: 364px;
 
+  @media @breakpoint {
+    height: max-content;
+    padding-bottom: 30px;
+  }
+
   .caption {
     height: 50px;
     padding: 0;
 
   .content {
     display: flex;
+
+    @media @breakpoint {
+      flex-direction: column;
+      gap: 31px;
+    }
   }
 
   .image {
     vertical-align: middle;
     width: 245px;
 
+    @media @breakpoint {
+      width: 100%;
+    }
+
     img {
       max-width: 250px;
       max-height: 300px;
+
+      @media @breakpoint {
+        max-width: 150px;
+        max-height: 200px;
+      }
     }
   }
 
     text-transform: uppercase;
     padding: 0 0 0 50px;
 
+    @media @breakpoint {
+      width: 100%;
+      padding: 0;
+    }
+
     h3 {
       font-size: 16px;
     }
     margin-left: 0;
   }
 
+  #wrap-kimplaycart {
+    overflow-x: auto;
+  }
+
   table {
     table-layout: fixed;
+    min-width: 800px;
 
     th {
       text-transform: uppercase;
     text-align: right;
     padding: 30px 0 0;
 
+    @media @breakpoint {
+      text-align: left;
+    }
+
     label {
 
       &.error {
       justify-content: flex-end;
       gap: 10px;
 
+      @media @breakpoint {
+        align-items: flex-start;
+        flex-direction: column;
+      }
+
       &.textarea {
         align-items: flex-start;
 
       text-align: left;
       padding: 5px 10px;
       font-size: 14px;
+
+      @media @breakpoint {
+        width: 100%;
+      }
     }
 
     textarea {