Use list layout when displaying errors to prevent string truncation
Description
This MR adds a single extra bundle entry when error messages are returned to show the information in list view layout. The change primarily affects the Playlist tab, as the album tab already displays playable items (e.g. the error message) in list view; albums are normally browseable and shown in a grid layout. The extra is a nice-to-have, does not add any additional overhead, and enables the user to read the full error message without an ellipsis.
Motivation and Context
Previously the error string was cut-off in the grid view due to a lack of available space. This changes the layout mode without requiring a playlist count each time we load the parent Home menu, as would normally be required to redefine the layout for the child.
How Has This Been Tested?
This was tested by removing all media from the media library and navigating through the various menus and tabs. Pages which previously displayed playable items in the grid view appeared in list view mode as expected.
Screenshots:
Types of changes
-
Enhancement (non-breaking change which cleans up / improves existing functionality)
Checklist
-
I have read the CONTRIBUTING section of the README document.
Links
See Add extra keys for single item styling and completion percentage for more details.