summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Fred K. Schott <matthewp@users.noreply.github.com> 2023-12-05 11:49:40 +0000
committerGravatar astrobot-houston <fred+astrobot@astro.build> 2023-12-05 11:49:40 +0000
commit7a4e2f41454f9119e8f8b66bfefba53c1a4d4de0 (patch)
tree4c99aac1119461afab09559e1524c81a641007ee
parent4351f43bb982d3d55311040ceae43286bfc90cbb (diff)
downloadastro-7a4e2f41454f9119e8f8b66bfefba53c1a4d4de0.tar.gz
astro-7a4e2f41454f9119e8f8b66bfefba53c1a4d4de0.tar.zst
astro-7a4e2f41454f9119e8f8b66bfefba53c1a4d4de0.zip
[ci] format
Diffstat (limited to '')
-rw-r--r--packages/astro/src/runtime/client/dev-overlay/plugins/audit/index.ts6
-rw-r--r--packages/astro/src/runtime/client/dev-overlay/plugins/xray.ts4
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 094640f9b..ac45616b1 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 714c80c2e..1c9a9c404 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) {