summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Matthew Phillips <matthew@skypack.dev> 2023-11-29 11:07:46 -0500
committerGravatar GitHub <noreply@github.com> 2023-11-29 11:07:46 -0500
commit279e3c1b3d06e7b48f01c0ef8285c3719ac74ace (patch)
tree75a346a62d2751a287a531cf03be1bbf78010f66
parent49aa215a01ee1c4805316c85bb0aea6cfbc25a31 (diff)
downloadastro-279e3c1b3d06e7b48f01c0ef8285c3719ac74ace.tar.gz
astro-279e3c1b3d06e7b48f01c0ef8285c3719ac74ace.tar.zst
astro-279e3c1b3d06e7b48f01c0ef8285c3719ac74ace.zip
Ensure dev-overlay-window is anchored to the bottom (#9222)
-rw-r--r--.changeset/famous-eels-trade.md5
-rw-r--r--packages/astro/src/runtime/client/dev-overlay/ui-library/window.ts3
2 files changed, 7 insertions, 1 deletions
diff --git a/.changeset/famous-eels-trade.md b/.changeset/famous-eels-trade.md
new file mode 100644
index 000000000..2c3d24898
--- /dev/null
+++ b/.changeset/famous-eels-trade.md
@@ -0,0 +1,5 @@
+---
+'astro': patch
+---
+
+Ensure the dev-overlay-window is anchored to the bottom
diff --git a/packages/astro/src/runtime/client/dev-overlay/ui-library/window.ts b/packages/astro/src/runtime/client/dev-overlay/ui-library/window.ts
index 2421632ae..2f5357a50 100644
--- a/packages/astro/src/runtime/client/dev-overlay/ui-library/window.ts
+++ b/packages/astro/src/runtime/client/dev-overlay/ui-library/window.ts
@@ -23,7 +23,8 @@ export class DevOverlayWindow extends HTMLElement {
color: rgba(204, 206, 216, 1);
position: fixed;
z-index: 999999999;
- top: 55%;
+ /* -7.5em is a magic number that seems to keep it anchored with the dev bar */
+ bottom: calc(7.5% + -150px);
left: 50%;
transform: translate(-50%, -50%);
box-shadow: 0px 0px 0px 0px rgba(19, 21, 26, 0.30), 0px 1px 2px 0px rgba(19, 21, 26, 0.29), 0px 4px 4px 0px rgba(19, 21, 26, 0.26), 0px 10px 6px 0px rgba(19, 21, 26, 0.15), 0px 17px 7px 0px rgba(19, 21, 26, 0.04), 0px 26px 7px 0px rgba(19, 21, 26, 0.01);