@visitscotland/component-library 5.71.2 → 5.71.3
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.
|
@@ -37043,7 +37043,7 @@ function useSwipeDrawer(e, t) {
|
|
|
37043
37043
|
), p = computed$1(() => {
|
|
37044
37044
|
if (i.value)
|
|
37045
37045
|
return {
|
|
37046
|
-
height: `calc(
|
|
37046
|
+
height: `calc(100dvh - ${u}px)`,
|
|
37047
37047
|
top: `${u}px`,
|
|
37048
37048
|
transform: `translateY(${n.value}px)`,
|
|
37049
37049
|
transition: s.value ? "none" : "transform 0.5s ease"
|
|
@@ -37070,7 +37070,7 @@ function useSwipeDrawer(e, t) {
|
|
|
37070
37070
|
return watchEffect(() => {
|
|
37071
37071
|
n.value = e.value ? c : f.value;
|
|
37072
37072
|
}), onMounted(() => {
|
|
37073
|
-
|
|
37073
|
+
r.value = t.value ? t.value.getBoundingClientRect().height : 500, l.value = Math.min(250, window.innerHeight * 0.3), n.value = f.value, i.value = window.innerWidth < 768, i.value && (document.documentElement.classList.add("map-page"), document.body.classList.add("map-page")), window.addEventListener("resize", v);
|
|
37074
37074
|
}), onUnmounted(() => {
|
|
37075
37075
|
document.documentElement.classList.remove("map-page"), document.body.classList.remove("map-page"), window.removeEventListener("resize", v);
|
|
37076
37076
|
}), {
|
package/package.json
CHANGED