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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add option to hide devtools panel on smaller screen sizes #599

Open
stefanobartoletti opened this issue Feb 16, 2024 · 2 comments
Open
Labels
enhancement New feature or request

Comments

@stefanobartoletti
Copy link

stefanobartoletti commented Feb 16, 2024

馃啋 Your use case

I find the small devtools indicator that permanently resides at the bottom of the screen to be a little intrusive when working on responsive layouts, i.e. when using a browser "device view" to see smaller screens.

On mobile screens, often UI elements are smaller and more difficult to interact with (to test or inspect them) when the devtools indicator is present and gets in the way.

Screenshot_20240216_133640

And I would also say that devtools window is not really that useful in these resolutions since the screen is too small to provide information in a viable way.

Screenshot_20240216_133714

馃啎 The solution you'd like

Give the ability to completely hide devtools when the site is displayed on smaller resolutions (probably the simplest way would be to just hide it from CSS). Maybe this could be optional so the user can choose whether it has to be hidden or not, and maybe use three generic "mobile", "tablet" and "desktop" breakpoints for fine-tuning.

馃攳 Alternatives you've considered

No response

鈩癸笍 Additional info

No response

@stefanobartoletti stefanobartoletti added the enhancement New feature or request label Feb 16, 2024
@arashsheyda
Copy link
Member

arashsheyda commented Feb 16, 2024

we already support this feature! if you have DevTools enabled in your nuxt.config.ts

devtools: {
    enabled: true,
  },

then you can go to settings tab and make sure that Always Show the floating tab is disabled. also Minimize floating panel on inactive is set to Always

the panel will be hide and you can toggle Devtools by pressing shift + option + D for macos and shift + ctrl alt + D on windows

Screenshot 2024-02-16 at 8 15 17鈥疉M

@stefanobartoletti
Copy link
Author

Thanks for your feedback!

I found that on my Linux system the shortcut to activate/deactivate it is Shift + Alt + D.

Besides that, this behavior is slightly different to what I'd like to have, I'm fine with having the indicator always present on desktop and only hiding it on mobile views. I think that for the time being I can resort on using a custom Userscript on my browser.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants