devtools icon indicating copy to clipboard operation
devtools copied to clipboard

fix: hide devtools completely on close

Open hi-reeve opened this issue 2 years ago â€ĸ 5 comments

🐛 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 avatar Dec 15 '23 05:12 hi-reeve

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 *

hi-reeve avatar Dec 15 '23 05:12 hi-reeve

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

arashsheyda avatar Jan 09 '24 19:01 arashsheyda

@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.

jiblett1000 avatar Mar 19 '24 07:03 jiblett1000

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

hoanghonn avatar May 25 '24 10:05 hoanghonn

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

antfu avatar May 28 '24 13:05 antfu