summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Matthew Phillips <matthewp@users.noreply.github.com> 2023-11-30 22:05:45 +0000
committerGravatar astrobot-houston <fred+astrobot@astro.build> 2023-11-30 22:05:45 +0000
commitc0481f47e2c25c5d8da2c8ae42cae9c8281dacc1 (patch)
treeda4de376e7e11e9c04a740732cfcda15757b7428
parentb750a161e0e059de9cf814ce271d5891e4e97cbe (diff)
downloadastro-c0481f47e2c25c5d8da2c8ae42cae9c8281dacc1.tar.gz
astro-c0481f47e2c25c5d8da2c8ae42cae9c8281dacc1.tar.zst
astro-c0481f47e2c25c5d8da2c8ae42cae9c8281dacc1.zip
[ci] format
Diffstat (limited to '')
-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';
}