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.js
CHANGED
|
@@ -6863,7 +6863,7 @@ var usePanelPosition = function (_a) {
|
|
|
6863
6863
|
var panelRect = panel.getBoundingClientRect();
|
|
6864
6864
|
var containerRect = container.getBoundingClientRect();
|
|
6865
6865
|
var buttonRect = button.getBoundingClientRect();
|
|
6866
|
-
var buttonLeft = buttonRect.left - containerRect.left -
|
|
6866
|
+
var buttonLeft = buttonRect.left - containerRect.left - 10; // Offset by 10px to account for controls section spacing
|
|
6867
6867
|
var left = Math.max(0, Math.min(buttonLeft, containerRect.width - panelRect.width));
|
|
6868
6868
|
setLocalStyles({ left: left });
|
|
6869
6869
|
}, [selectedFilter, isMobile]);
|