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

fix: hide devtools completely on close #544

Open
hi-reeve opened this issue Dec 15, 2023 · 5 comments
Open

fix: hide devtools completely on close #544

hi-reeve opened this issue Dec 15, 2023 · 5 comments
Labels
bug Something isn't working

Comments

@hi-reeve
Copy link

πŸ› The bug

this is when devtools open
image

this is when devtools close
image

the devtools left behind an unseen container.

when i shrink down the devtools
image

shrinked down devtools when close
image

πŸ› οΈ To reproduce

🌈 Expected behavior

the devtools close completely.

ℹ️ Additional context

i use unocss as module

@hi-reeve hi-reeve added the bug Something isn't working label Dec 15, 2023
@hi-reeve
Copy link
Author

my bad this happen because i set css selector * to have background color and the devtools background color also change, this we can have some improvement on this so that the devtools does not effect by css selector *

@arashsheyda
Copy link
Member

arashsheyda commented Jan 9, 2024

we can do something like this but it's not a good solution

*:not(.nuxt-devtools-[x]) {
	....
}

this would require a lot of classing and I don't think it's a good idea, so we can just not use * {...}

let us know if you have a better solution, thanks

@jiblett1000
Copy link

@hi-reeve If you enable the "close DevTools on outside click" option and then click outside the window, it closes the devtools button thing as well.

@hoanghonn
Copy link

Curious if this is fixed yet? I am still seeing a white blank container on closing down Devtools.

@antfu
Copy link
Member

antfu commented May 28, 2024

I couldn't help without a proper minimal reproduction - this sounds like a userland-style conflict.

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

5 participants