Skip to content

Conversation

@tengweiherr
Copy link
Contributor

fix #358

Changes

  • override the calculations in the toolbar positioning and resizing if it is RTL (by checking the directionality set in the documentElement

Examples

demo-1-1.mp4

@vercel
Copy link

vercel bot commented Apr 13, 2025

@tengweiherr is attempting to deploy a commit to the Million Team on Vercel.

A member of the Team first needs to authorize it.

@pkg-pr-new
Copy link

pkg-pr-new bot commented Apr 13, 2025

Open in StackBlitz

npm i https://pkg.pr.new/aidenybai/react-scan@365

commit: 24477b0

className={cn(
'react-scan-inspector-overlay',
'fixed inset-0 w-screen h-screen',
'fixed top-0 left-0 w-screen h-screen',
Copy link
Contributor Author

@tengweiherr tengweiherr Apr 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is to fix the following canvas positioning issue in RTL.

issue-1.mov

Notice that the initial render's outlines flushing is fine because of top-0 left-0 in here

@RobPruzan
Copy link
Collaborator

Hoping to review this soon!

@tengweiherr
Copy link
Contributor Author

@RobPruzan Bump😄

@vladkucherov
Copy link

@RobPruzan Another kind bump 🙏

@tengweiherr
Copy link
Contributor Author

@RobPruzan another kind bump 😇

@RobPruzan
Copy link
Collaborator

@RobPruzan another kind bump 😇

will be available in a few days! Finishing up finals right now, so super busy

@tengweiherr
Copy link
Contributor Author

@RobPruzan no worries, good luck with your finals!

@RobPruzan
Copy link
Collaborator

Looks great! Thanks for the PR :D

@RobPruzan RobPruzan merged commit cb10946 into aidenybai:main May 13, 2025
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Widget is not visible in RTL applications

3 participants