@bebranded/bb-contents 1.0.88 → 1.0.90-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/bb-contents.js +12 -12
  2. package/package.json +1 -1
package/bb-contents.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * BeBranded Contents
3
3
  * Contenus additionnels français pour Webflow
4
- * @version 1.0.88
4
+ * @version 1.0.90-beta
5
5
  * @author BeBranded
6
6
  * @license MIT
7
7
  * @website https://www.bebranded.xyz
@@ -32,11 +32,11 @@
32
32
  window._bbContentsInitialized = true;
33
33
 
34
34
  // Log de démarrage simple (une seule fois)
35
- console.log('bb-contents | v1.0.88');
35
+ console.log('bb-contents | v1.0.90-beta');
36
36
 
37
37
  // Configuration
38
38
  const config = {
39
- version: '1.0.88',
39
+ version: '1.0.90-beta',
40
40
  debug: false, // Debug désactivé pour rendu propre
41
41
  prefix: 'bb-', // utilisé pour générer les sélecteurs (data-bb-*)
42
42
  youtubeEndpoint: null, // URL du worker YouTube (à définir par l'utilisateur)
@@ -289,9 +289,9 @@
289
289
  mainContainer.style.cssText = `
290
290
  position: relative;
291
291
  width: 100%;
292
- height: auto;
293
- overflow: visible;
294
- min-height: auto;
292
+ height: ${isVertical ? (height === 'auto' ? 'auto' : height + 'px') : 'auto'};
293
+ overflow: hidden;
294
+ min-height: ${isVertical ? '100px' : '50px'};
295
295
  ${minHeight ? `min-height: ${minHeight};` : ''}
296
296
  `;
297
297
 
@@ -486,11 +486,11 @@
486
486
  const step = (parseFloat(speed) * (isVertical ? 1.5 : 0.8)) / 60;
487
487
  let isPaused = false;
488
488
 
489
- // Ajuster la taille du conteneur - respecter les dimensions naturelles
489
+ // Ajuster la taille du conteneur
490
490
  if (isVertical && !useAutoHeight) {
491
- scrollContainer.style.height = 'auto';
491
+ scrollContainer.style.height = totalSize + 'px';
492
492
  } else if (!isVertical) {
493
- scrollContainer.style.width = 'auto';
493
+ scrollContainer.style.width = totalSize + 'px';
494
494
  }
495
495
 
496
496
  // Position initiale optimisée pour Safari
@@ -569,11 +569,11 @@
569
569
  currentPosition = 0;
570
570
  }
571
571
 
572
- // Ajuster la taille du conteneur - respecter les dimensions naturelles
572
+ // Ajuster la taille du conteneur
573
573
  if (isVertical && !useAutoHeight) {
574
- scrollContainer.style.height = 'auto';
574
+ scrollContainer.style.height = totalSize + 'px';
575
575
  } else if (!isVertical) {
576
- scrollContainer.style.width = 'auto';
576
+ scrollContainer.style.width = totalSize + 'px';
577
577
  }
578
578
 
579
579
  // Fonction d'animation standard
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bebranded/bb-contents",
3
- "version": "1.0.88",
3
+ "version": "1.0.90-beta",
4
4
  "description": "Contenus additionnels français pour Webflow",
5
5
  "main": "bb-contents.js",
6
6
  "scripts": {