-
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
Templates: Hide description field when switching to List layout #57596
Comments
This comment was marked as resolved.
This comment was marked as resolved.
Enable the "New admin views" experiment in Gutenberg then navigate to Appearance > Editor > Templates > Manage all templates. From there change the layout to "List" in the view options. Since this view is optimised for quickly browsing records in a more visual manner, I don't know that the description is required in the list. It can be accessed easily once it's possible to reach the details panel for each record (see #57523). |
I think this is much less of an issue since Grid was made the default layout for templates, but it would be good to auto-hide the description when switching from grid to list layout. |
If you can invoke the normalized details panel / inspector in this view, then you'd be able to see the description there. |
Yup. You could also manually expose the description in view options if you really need to see it in this layout. |
Hi @jameskoster @jasmussen , I have raised a PR for this. Please review at your convenience. Just adding one point over here - As you can see in the below video -
Screen.Recording.2024-05-26.at.12.mp4 |
This is a good question because it may indicate we need a more fundamental change to get this right. I'm keen to hear feedback from others but my feeling is that in this example switching from List layout to any other layout should reveal the description again. What makes sense to me:
So as a working example, on the templates page: Switching from Table to List layout would hide the description. Switching back to Table layout would reveal it again. However, if a user toggled the description field off in Table layout, then switched to List layout, then back to Table layout, the description would remain hidden. This seems reasonable to me because the user made an active decision around field visibility, and that should persist for the current session. What do you think? |
This is an enhancement, so punting to WP 6.7. |
Yes, it seems to me, the fundamental issue is that we want by default different fields for different layouts and it might not make sense to retain the fields when you switch layouts. Folks want to retain things like "filters" and "search" but maybe it's not the case for the rest (pagination: arguable, fields) |
Since template descriptions can sometimes be quite long, they are not handled beautifully in data views list layout:
When switching from the default layout (Grid) to List, it might be good to auto-hide the description field.
Original issue
In the template management data view – list layout – the description isn't particularly useful for two main reasons:–
which takes up a lot of vertical spaceRemoving the description would reduce a lot of noise and save space:
The text was updated successfully, but these errors were encountered: