aboutsummaryrefslogtreecommitdiffstats
path: root/dist
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2024-09-15 22:09:31 +0200
committerGitHub <noreply@github.com>2024-09-15 22:09:31 +0200
commit4668bd936fca6420b1871da0f3c40f7ab986490a (patch)
treef4af99ba23acb6c426b54b0dfef6fb303abda82a /dist
parent46a15f2915b46a5e0a2ccef900a6078707867dec (diff)
parent5ab90bb5da77ac76839ac9222f44a3bc6ab11204 (diff)
downloadnextcloud-server-4668bd936fca6420b1871da0f3c40f7ab986490a.tar.gz
nextcloud-server-4668bd936fca6420b1871da0f3c40f7ab986490a.zip
Merge pull request #47811 from nextcloud/backport/47649/stable28
Diffstat (limited to 'dist')
-rw-r--r--dist/core-public.js2
-rw-r--r--dist/core-public.js.map1
2 files changed, 3 insertions, 0 deletions
diff --git a/dist/core-public.js b/dist/core-public.js
new file mode 100644
index 00000000000..601ce15af5d
--- /dev/null
+++ b/dist/core-public.js
@@ -0,0 +1,2 @@
+(()=>{"use strict";const e=document.body,t=document.querySelector("footer");let o=null==t?void 0:t.offsetHeight;t&&new ResizeObserver((t=>{for(const r of t){const t=r.contentRect.height;if(t===o)return;o=t,e.style.setProperty("--footer-height","".concat(t,"px"))}})).observe(t,{box:"border-box"})})();
+//# sourceMappingURL=core-public.js.map?v=3b53366b4e9f05a5f3ff \ No newline at end of file
diff --git a/dist/core-public.js.map b/dist/core-public.js.map
new file mode 100644
index 00000000000..42a1498d78d
--- /dev/null
+++ b/dist/core-public.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"core-public.js?v=3b53366b4e9f05a5f3ff","mappings":"mBAKA,MAAMA,EAAOC,SAASD,KAChBE,EAASD,SAASE,cAAc,UACtC,IAAIC,EAAaF,aAAM,EAANA,EAAQG,aAWrBH,GACA,IAAII,gBAXUC,IACd,IAAK,MAAMC,KAASD,EAAS,CACzB,MAAME,EAASD,EAAME,YAAYD,OACjC,GAAIA,IAAWL,EACX,OAEJA,EAAaK,EACbT,EAAKW,MAAMC,YAAY,kBAAmB,GAAFC,OAAKJ,EAAM,MACvD,KAIKK,QAAQZ,EAAQ,CACjBa,IAAK,c","sources":["webpack:///nextcloud/core/src/public.ts"],"sourcesContent":["\"use strict\";\n/**\n * SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\nconst body = document.body;\nconst footer = document.querySelector('footer');\nlet prevHeight = footer?.offsetHeight;\nconst onResize = (entries) => {\n for (const entry of entries) {\n const height = entry.contentRect.height;\n if (height === prevHeight) {\n return;\n }\n prevHeight = height;\n body.style.setProperty('--footer-height', `${height}px`);\n }\n};\nif (footer) {\n new ResizeObserver(onResize)\n .observe(footer, {\n box: 'border-box', // <footer> is border-box\n });\n}\n"],"names":["body","document","footer","querySelector","prevHeight","offsetHeight","ResizeObserver","entries","entry","height","contentRect","style","setProperty","concat","observe","box"],"sourceRoot":""} \ No newline at end of file