-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent dev toolbar tooltip from overflowing (#9512)
* fix: prevent dev toolbar toolip from overflowing * test: add a test case for dev toolbar toolip position * Create small-emus-deny.md --------- Co-authored-by: Bjorn Lu <[email protected]>
- Loading branch information
Showing
4 changed files
with
57 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"astro": patch | ||
--- | ||
|
||
Prevents dev toolbar tooltip from overflowing outside of the screen |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
packages/astro/e2e/fixtures/dev-overlay/src/pages/tooltip-position.astro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
--- | ||
|
||
<div> | ||
<button role="top-left">Top left</button> | ||
<button role="top-right">Top right</button> | ||
<button role="bottom-left">Bottom left</button> | ||
<button role="bottom-right">Bottom right</button> | ||
</div> | ||
|
||
<style> | ||
div { | ||
display: grid; | ||
grid-template-columns: auto auto; | ||
justify-content: space-between; | ||
align-content: space-between; | ||
height: 92vh; | ||
padding: 20px; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters