From 7a4e2f41454f9119e8f8b66bfefba53c1a4d4de0 Mon Sep 17 00:00:00 2001 From: "Fred K. Schott" Date: Tue, 5 Dec 2023 11:49:40 +0000 Subject: [PATCH] [ci] format --- .../src/runtime/client/dev-overlay/plugins/audit/index.ts | 6 +++--- .../astro/src/runtime/client/dev-overlay/plugins/xray.ts | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/astro/src/runtime/client/dev-overlay/plugins/audit/index.ts b/packages/astro/src/runtime/client/dev-overlay/plugins/audit/index.ts index 094640f9bb..ac45616b16 100644 --- a/packages/astro/src/runtime/client/dev-overlay/plugins/audit/index.ts +++ b/packages/astro/src/runtime/client/dev-overlay/plugins/audit/index.ts @@ -203,14 +203,14 @@ export default { // Set the highlight/tooltip as being fixed position the highlighted element // is fixed. We do this so that we don't mistakenly take scroll position // into account when setting the tooltip/highlight positioning. - // - // We only do this once due to how expensive computed styles are to calculate, + // + // We only do this once due to how expensive computed styles are to calculate, // and are unlikely to change. If that turns out to be wrong, reconsider this. const { isFixed } = getElementsPositionInDocument(originalElement); if (isFixed) { tooltip.style.position = highlight.style.position = 'fixed'; } - + attachTooltipToHighlight(highlight, tooltip, originalElement); canvas.append(highlight); diff --git a/packages/astro/src/runtime/client/dev-overlay/plugins/xray.ts b/packages/astro/src/runtime/client/dev-overlay/plugins/xray.ts index 714c80c2e8..1c9a9c404e 100644 --- a/packages/astro/src/runtime/client/dev-overlay/plugins/xray.ts +++ b/packages/astro/src/runtime/client/dev-overlay/plugins/xray.ts @@ -111,8 +111,8 @@ export default { // Set the highlight/tooltip as being fixed position the highlighted element // is fixed. We do this so that we don't mistakenly take scroll position // into account when setting the tooltip/highlight positioning. - // - // We only do this once due to how expensive computed styles are to calculate, + // + // We only do this once due to how expensive computed styles are to calculate, // and are unlikely to change. If that turns out to be wrong, reconsider this. const { isFixed } = getElementsPositionInDocument(islandElement); if (isFixed) {