@bebranded/bb-contents 1.0.1-beta → 1.0.2-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.
- package/bb-contents.js +3 -3
- 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.
|
|
4
|
+
* @version 1.0.2-beta
|
|
5
5
|
* @author BeBranded
|
|
6
6
|
* @license MIT
|
|
7
7
|
* @website https://www.bebranded.xyz
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
// Configuration
|
|
19
19
|
const config = {
|
|
20
|
-
version: '1.0.
|
|
20
|
+
version: '1.0.2-beta',
|
|
21
21
|
debug: window.location.hostname === 'localhost' || window.location.hostname.includes('webflow.io'),
|
|
22
22
|
prefix: 'bb-', // utilisé pour générer les sélecteurs (data-bb-*)
|
|
23
23
|
i18n: {
|
|
@@ -588,6 +588,7 @@
|
|
|
588
588
|
const gap = bbContents._getAttr(element, 'bb-marquee-gap') || '50';
|
|
589
589
|
const orientation = bbContents._getAttr(element, 'bb-marquee-orientation') || 'horizontal';
|
|
590
590
|
const height = bbContents._getAttr(element, 'bb-marquee-height') || '300';
|
|
591
|
+
const isVertical = orientation === 'vertical';
|
|
591
592
|
const minHeight = bbContents._getAttr(element, 'bb-marquee-min-height') || (isVertical ? '100px' : 'auto');
|
|
592
593
|
|
|
593
594
|
// Sauvegarder le contenu original
|
|
@@ -595,7 +596,6 @@
|
|
|
595
596
|
|
|
596
597
|
// Créer le conteneur principal
|
|
597
598
|
const mainContainer = document.createElement('div');
|
|
598
|
-
const isVertical = orientation === 'vertical';
|
|
599
599
|
// Pour le marquee horizontal, on va détecter automatiquement la hauteur des logos
|
|
600
600
|
const autoHeight = !isVertical && !bbContents._getAttr(element, 'bb-marquee-height');
|
|
601
601
|
|