Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zoom to component #318

Open
fkotsian opened this issue Aug 26, 2021 · 2 comments
Open

Zoom to component #318

fkotsian opened this issue Aug 26, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@fkotsian
Copy link

fkotsian commented Aug 26, 2021

In the Preact panel in Chrome, it would be absolutely incredible if we could right click + inspect and zoom to the selected component, as does the Inspect function in Chrome's DOM tools

Use case: particular on large, new codebases, it really helps figure out which components we need to modify!
(The alternative right now: scroll the Elements panel until you find something vaguely right that highlights, then inspect that - 😢 )

🙏 🙏 🙏

@marvinhagemeister marvinhagemeister added the bug Something isn't working label Aug 27, 2021
@marvinhagemeister
Copy link
Member

Looks like something isn't working correctly maybe due to some changes in internal browser APIs that the extension relies upon. By default the extension should sync selection state between the native "Elements" panel and Preact's elements panel in both directions. If you select a DOM node in the native Elements panel the extension should automatically highlight the matching component and the other way round.

Need to check what broke here. That feature relies on some internal and undocumented browser APIs, maybe something changed there.

@fkotsian
Copy link
Author

Indeed! Specifically, it would be super nice if we could right-click + "Inspect in Preact (or similar)" and trigger that zoom. I dunno if that's easier than fixing a persistent sync? I, for one, would find that much more useful for checking out component trees

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants