@jsenv/navi 0.26.5 → 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 +12 -6
- 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 {
|
|
@@ -31066,12 +31067,21 @@ installImportMetaCssBuild(import.meta);const css$f = /* css */`
|
|
|
31066
31067
|
under a single border/shadow. CSS order places it before the list
|
|
31067
31068
|
when the popover is below the trigger, and after when above. */
|
|
31068
31069
|
.navi_select_anchor_clone {
|
|
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 */
|
|
31074
|
+
min-height: calc(var(--anchor-height) - var(--select-border-width));
|
|
31069
31075
|
/* Mirror the trigger's padding so the clone looks identical */
|
|
31070
31076
|
padding-top: var(--x-select-padding-top);
|
|
31071
31077
|
padding-right: var(--x-select-padding-right);
|
|
31072
31078
|
padding-bottom: var(--x-select-padding-bottom);
|
|
31073
31079
|
padding-left: var(--x-select-padding-left);
|
|
31074
31080
|
flex-shrink: 0;
|
|
31081
|
+
flex-direction: column;
|
|
31082
|
+
align-items: center;
|
|
31083
|
+
justify-content: center;
|
|
31084
|
+
gap: var(--navi-s);
|
|
31075
31085
|
order: -1; /* before the list — popover is below the trigger */
|
|
31076
31086
|
background: var(--x-select-background-color);
|
|
31077
31087
|
border-bottom: var(--select-border-width) solid
|
|
@@ -31112,10 +31122,6 @@ installImportMetaCssBuild(import.meta);const css$f = /* css */`
|
|
|
31112
31122
|
}
|
|
31113
31123
|
|
|
31114
31124
|
&[aria-expanded="true"] {
|
|
31115
|
-
border-top-color: var(--select-border-color);
|
|
31116
|
-
border-top-left-radius: 0;
|
|
31117
|
-
border-top-right-radius: 0;
|
|
31118
|
-
|
|
31119
31125
|
.navi_select_popover {
|
|
31120
31126
|
display: flex;
|
|
31121
31127
|
flex-direction: column;
|