Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions css/gallery-rtl.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions css/gallery.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions js/gallery-rtl.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion js/gallery.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('wp-block-editor', 'wp-components', 'wp-components/build-style/style.css', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => '92c1913a2ab581c0270f');
<?php return array('dependencies' => array('wp-block-editor', 'wp-components', 'wp-components/build-style/style.css', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => 'e09fae43ef7020fbad7b');
1 change: 1 addition & 0 deletions js/gallery.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions php/media/class-gallery.php
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,17 @@ public function enqueue_admin_scripts() {
$this->plugin->version
);

// Styles for the shared gallery controls (e.g. the Layout radio group)
// used by the settings page preview app. These live in `gallery.scss`,
// which is bundled with the `gallery` (settings) entry but is not
// auto-enqueued, so load it explicitly here.
wp_enqueue_style(
'cloudinary-gallery-controls-css',
$this->plugin->dir_url . 'css/gallery.css',
array(),
$this->plugin->version
);

$script = array(
'slug' => 'gallery_config',
'src' => $this->plugin->dir_url . 'js/gallery.js',
Expand Down
1 change: 1 addition & 0 deletions src/js/components/settings-gallery.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { createRoot, render, useEffect, useState } from '@wordpress/element';
/**
* Internal dependencies
*/
import '../../css/gallery.scss';
import GalleryControls from '../gallery-block/controls';
import {
convertColors,
Expand Down
Loading