-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(astro): positioning of inspection tooltip in RTL mode (#11081)
* fix: prevent overlay from going out of the view * test: add test case for positioning * chore: add changeset entry --------- Co-authored-by: Erika <[email protected]>
- Loading branch information
1 parent
b5f95b2
commit af42e05
Showing
4 changed files
with
57 additions
and
0 deletions.
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,8 @@ | ||
--- | ||
"astro": patch | ||
--- | ||
|
||
Correctly position inspection tooltip in RTL mode | ||
|
||
When RTL mode is turned on, the inspection tooltip tend to overflow the window on the left side. | ||
Additional check has been added to prevent that. |
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
19 changes: 19 additions & 0 deletions
19
packages/astro/e2e/fixtures/dev-toolbar/src/pages/xray-overlay-positioning.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,19 @@ | ||
--- | ||
import { HelloWorld } from '../components/HelloWorld'; | ||
--- | ||
|
||
<div style="position: absolute; left: 0; top: 0;"> | ||
<HelloWorld name={"Left top"} client:load /> | ||
</div> | ||
|
||
<div style="position: absolute; right: 0; top: 0;"> | ||
<HelloWorld name={"Right top"} client:load /> | ||
</div> | ||
|
||
<div style="position: absolute; left: 0; bottom: 0;"> | ||
<HelloWorld name={"Left bottom"} client:load /> | ||
</div> | ||
|
||
<div style="position: absolute; right: 0; bottom: 0;"> | ||
<HelloWorld name={"Right bottom"} client:load /> | ||
</div> |
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