[Feature]: Surface the device toolbar as a preview toolbar button #6956
glauber-sampaio
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Before submitting
Area
apps/webProblem or use case
The device toolbar is only reachable through the three-dot menu in the preview chrome row. It is the fastest way to check a layout at a phone or tablet size, but it sits two clicks deep behind a menu you have to already know to open.
Everything else on that row that changes what the preview shows is a visible icon — annotate, screenshot, floating preview:
I used T3 Code for a while before finding out the device toolbar existed.
Proposed solution
Promote it to an icon button in the chrome row, next to the annotation button, with a pressed state while a fixed viewport is active. Moving it rather than duplicating it keeps the menu for actions that have no icon.
A
preview.deviceToolbarcommand would also make it bindable.mod+shift+dis free outside the terminal, which uses that chord forterminal.splitVertical; Chrome'smod+shift+mis already the model picker here.Why this matters
Responsive checking is a normal part of working on a page in the preview, and it is currently the only such action hidden in a menu.
Smallest useful scope
The toolbar button alone. The keybinding is separable and could follow #4641.
All reactions