v1/web/modules/contrib/media_library_theme_reset
Gdilove 927f32325b 初始化 2023-11-13 20:36:13 +08:00
..
templates 初始化 2023-11-13 20:36:13 +08:00
tests 初始化 2023-11-13 20:36:13 +08:00
theme/seven 初始化 2023-11-13 20:36:13 +08:00
.gitignore 初始化 2023-11-13 20:36:13 +08:00
LICENSE.txt 初始化 2023-11-13 20:36:13 +08:00
README.md 初始化 2023-11-13 20:36:13 +08:00
media_library_theme_reset.info.yml 初始化 2023-11-13 20:36:13 +08:00
media_library_theme_reset.libraries.yml 初始化 2023-11-13 20:36:13 +08:00
media_library_theme_reset.module 初始化 2023-11-13 20:36:13 +08:00
package-lock.json 初始化 2023-11-13 20:36:13 +08:00
package.json 初始化 2023-11-13 20:36:13 +08:00

README.md

Media Library Theme Reset

Summary

This module fixes theme related problems related to using Layout Builder in conjunction with the core Media Library.

About this module

Layout Builder greatly improves the content editing experience by moving content creation and layout into the active theme layer.

However, because editing takes place with the default theme, rather than the admin theme, the core Media Library, when used in the context of Layout Builder, will also use the default theme. Since most front-end themes are not designed for Drupal form editing, they end up looking insufficient.

The ideal solution would be to use a Drupal admin theme in Layout Builder. However, this is currently not possible (see [#3042907] and [#3050508]).

Rather than requiring themes to add additional logic to display Drupal forms sufficiently, this module takes on the responsibility of replicating Seven's CSS and attaching it, as a library, in the context of the Media Library, when accessed via Layout Builder.