-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[Commands]: Add toggle list view command in site editor #53983
Conversation
Size Change: +43 B (0%) Total Size: 1.51 MB
ℹ️ View Unchanged
|
This change looks good to me. However, while testing this PR, I discovered a problem with unintentionally opening the list view even when in Distraction Free mode. I can reproduce this problem in the post editor. Should this issue be addressed in another PR? You can see this bug in the following screencast, just past the 30 second mark. 2909111b5b8a0b563d336b65409c3146.mp4 |
I think we should address it in a different PR and eventually decide how to handle the DFM mode restrictions for every command. Probably in the open sidebar actions or something.. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
I think we should address it in a different PR and eventually decide how to handle the DFM mode restrictions for every command. Probably in the open sidebar actions or something..
Indeed it does, I have found that in DFM mode it unintentionally switches not only the list view, but also the sidebar, block inspector, top toolbar, etc 😅
We can address this point in a follow-up PR.
I have summarized in #53993 how commands should be handled in DFM mode. |
What?
See comment.
This PR adds a command in to toggle the list view in site editor. The respective command for post editor already exists.
Testing Instructions
edit mode
open the commands prompt and try thetoggle list view
command.edit
mode.