nuxt / devtools

Unleash Nuxt Developer Experience
https://devtools.nuxt.com
MIT License
2.9k stars 162 forks source link

fix: hide devtools completely on close #544

Open hi-reeve opened 10 months ago

hi-reeve commented 10 months ago

🐛 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 commented 10 months ago

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 commented 9 months ago

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 commented 7 months ago

@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 commented 5 months ago

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

antfu commented 5 months ago

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