mirror of
https://github.com/nextcloud/server.git
synced 2026-11-01 19:11:49 +01:00
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
1 line
1.1 KiB
Plaintext
1 line
1.1 KiB
Plaintext
{"version":3,"file":"core-public.mjs","sources":["../build/frontend/core/src/public.ts"],"sourcesContent":["/**\n * SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nconst body = document.body\nconst footer = document.querySelector('footer')\nlet prevHeight = footer?.offsetHeight\n\nconst onResize: ResizeObserverCallback = (entries) => {\n\tfor (const entry of entries) {\n\t\tconst height = entry.contentRect.height\n\t\tif (height === prevHeight) {\n\t\t\treturn\n\t\t}\n\t\tprevHeight = height\n\t\tbody.style.setProperty('--footer-height', `${height}px`)\n\t}\n}\n\nif (footer) {\n\tnew ResizeObserver(onResize)\n\t\t.observe(footer, {\n\t\t\tbox: 'border-box', // <footer> is border-box\n\t\t})\n}\n"],"names":["body","footer","prevHeight","onResize","entries","entry","height"],"mappings":"MAKMA,EAAO,SAAS,KAChBC,EAAS,SAAS,cAAc,QAAQ,EAC9C,IAAIC,EAAaD,GAAQ,aAEzB,MAAME,EAAoCC,GAAY,CACrD,UAAWC,KAASD,EAAS,CAC5B,MAAME,EAASD,EAAM,YAAY,OACjC,GAAIC,IAAWJ,EACd,OAEDA,EAAaI,EACbN,EAAK,MAAM,YAAY,kBAAmB,GAAGM,CAAM,IAAI,CACxD,CACD,EAEIL,GACH,IAAI,eAAeE,CAAQ,EACzB,QAAQF,EAAQ,CAChB,IAAK,YAAA,CACL"} |