willba-component-library 0.3.21 → 0.3.22
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/README.md +1 -1
- package/lib/index.esm.js +1 -1
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/index.umd.js +1 -1
- package/lib/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/FilterBar/FilterBar.stories.tsx +1 -1
- package/src/components/FilterBar/hooks/usePanelPosition.tsx +1 -1
package/lib/index.umd.js
CHANGED
|
@@ -6865,7 +6865,7 @@
|
|
|
6865
6865
|
var panelRect = panel.getBoundingClientRect();
|
|
6866
6866
|
var containerRect = container.getBoundingClientRect();
|
|
6867
6867
|
var buttonRect = button.getBoundingClientRect();
|
|
6868
|
-
var buttonLeft = buttonRect.left - containerRect.left -
|
|
6868
|
+
var buttonLeft = buttonRect.left - containerRect.left - 10; // Offset by 10px to account for controls section spacing
|
|
6869
6869
|
var left = Math.max(0, Math.min(buttonLeft, containerRect.width - panelRect.width));
|
|
6870
6870
|
setLocalStyles({ left: left });
|
|
6871
6871
|
}, [selectedFilter, isMobile]);
|