summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/astro/src/runtime/client/dev-overlay/plugins/utils/highlight.ts2
-rw-r--r--packages/astro/src/runtime/client/dev-overlay/plugins/xray.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/packages/astro/src/runtime/client/dev-overlay/plugins/utils/highlight.ts b/packages/astro/src/runtime/client/dev-overlay/plugins/utils/highlight.ts
index 565e58a1a..218ad310c 100644
--- a/packages/astro/src/runtime/client/dev-overlay/plugins/utils/highlight.ts
+++ b/packages/astro/src/runtime/client/dev-overlay/plugins/utils/highlight.ts
@@ -29,7 +29,7 @@ export function getElementsPositionInDocument(el: Element) {
if (!Number.isNaN(zIndex) && zIndex > highestZIndex) {
highestZIndex = zIndex;
}
- if(style.position === 'fixed') {
+ if (style.position === 'fixed') {
fixed = true;
}
current = current.parentNode;
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 e76da4de0..56934d4e7 100644
--- a/packages/astro/src/runtime/client/dev-overlay/plugins/xray.ts
+++ b/packages/astro/src/runtime/client/dev-overlay/plugins/xray.ts
@@ -90,7 +90,7 @@ export default {
// to calculate, and are unlikely to change. If that turns out to be wrong, reconsider this.
const { zIndex, fixed } = getElementsPositionInDocument(islandElement);
tooltip.style.zIndex = highlight.style.zIndex = zIndex + '';
- if(fixed) {
+ if (fixed) {
tooltip.style.position = highlight.style.position = 'fixed';
}