Media library theme reset compatible with node add/edit

Created on 18 December 2019, about 5 years ago
Updated 19 September 2024, 3 months ago

Hello.

I have upload a new patch. The media library theme reset can work's with node add / node edit.

And i recommand to add this little tricks to your theme :

.media-library-select-all {
  display: none !important;
}
.view-content > .media-library-item {
  padding-left: 1rem;
}
.media-library-view > div > div > .form--inline {
  padding-left: 1rem;
}
.media-library-widget-modal {
    position: fixed;
    right: 0;
    left: 0;
    margin-right: auto;
    margin-left: auto;
    min-height: 10rem;
    width: 100%;
}
✨ Feature request
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡«πŸ‡·France Asterovim Paris

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States rhovland Oregon

    Re-opening this.

    The node add forms are rendered in the front-end theme if "Use the administration theme when editing or creating content" is unchecked in the Appearance settings page (theme page).

    I still need to re-evaluate the submitted patch though.

  • Status changed to Fixed 3 months ago
  • πŸ‡ΊπŸ‡ΈUnited States rhovland Oregon

    This has been fixed in 2.x. The module now uses the media_library_add_form_alter hook to attach the CSS instead of a generic form_alter hook so filtering by form name is no longer needed. The styles will be applied on any page where the media library modal is summoned.

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024