@jsenv/navi 0.26.6 → 0.26.7
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/dist/jsenv_navi.js +6 -2
- package/dist/jsenv_navi.js.map +6 -4
- package/package.json +1 -1
package/dist/jsenv_navi.js
CHANGED
|
@@ -30762,8 +30762,9 @@ const Popover = props => {
|
|
|
30762
30762
|
width,
|
|
30763
30763
|
height
|
|
30764
30764
|
} = effectiveAnchor.getBoundingClientRect();
|
|
30765
|
-
|
|
30766
|
-
popoverEl.style.setProperty("--anchor-
|
|
30765
|
+
const snap = v => Math.round(v * devicePixelRatio) / devicePixelRatio;
|
|
30766
|
+
popoverEl.style.setProperty("--anchor-width", `${snap(width)}px`);
|
|
30767
|
+
popoverEl.style.setProperty("--anchor-height", `${snap(height)}px`);
|
|
30767
30768
|
const minLeft = 1;
|
|
30768
30769
|
const effectivePositionX = anchor ? positionX : "center";
|
|
30769
30770
|
const {
|
|
@@ -31067,6 +31068,9 @@ installImportMetaCssBuild(import.meta);const css$f = /* css */`
|
|
|
31067
31068
|
when the popover is below the trigger, and after when above. */
|
|
31068
31069
|
.navi_select_anchor_clone {
|
|
31069
31070
|
display: flex;
|
|
31071
|
+
/* To make clone same height as original we need to force it because context can impact height */
|
|
31072
|
+
/* Like siblings with a bigger height in a flex container */
|
|
31073
|
+
/* We subtract the border sizes as anchor-height includes borders in the dimensions */
|
|
31070
31074
|
min-height: calc(var(--anchor-height) - var(--select-border-width));
|
|
31071
31075
|
/* Mirror the trigger's padding so the clone looks identical */
|
|
31072
31076
|
padding-top: var(--x-select-padding-top);
|