From dbd71c15d1a3d1925f19621b882857f481b7b0c7 Mon Sep 17 00:00:00 2001 From: mateuswetah Date: Tue, 23 Apr 2024 16:53:09 -0300 Subject: [PATCH 1/3] Fixes issues with draggable components on Chrome. --- src/views/admin/components/lists/collection-metadata-list.vue | 4 ++-- src/views/admin/components/lists/repository-metadata-list.vue | 2 +- .../metadata-types/compound/child-metadata-list.vue | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/admin/components/lists/collection-metadata-list.vue b/src/views/admin/components/lists/collection-metadata-list.vue index f3b32337e..bd7b1f8fb 100644 --- a/src/views/admin/components/lists/collection-metadata-list.vue +++ b/src/views/admin/components/lists/collection-metadata-list.vue @@ -682,7 +682,7 @@ export default { if ( !$event.from.classList.contains('active-metadata-area') ) { this.addNewMetadatum(this.getMetadatumTypes()[$event.oldIndex], $event.newIndex, sectionIndex); - $event.originalTarget.removeChild($event.item) + $event.to.removeChild($event.item) } else { this.isLoadingMetadataSections = true; @@ -698,7 +698,7 @@ export default { newMetadataSectionsList[previousSectionIndex].metadata_object_list = previousSectionMetadataObjectList; this.updateMetadataSections(newMetadataSectionsList); - $event.originalTarget.removeChild($event.item); + $event.to.removeChild($event.item); this.updateMetadatum({ collectionId: this.collectionId, diff --git a/src/views/admin/components/lists/repository-metadata-list.vue b/src/views/admin/components/lists/repository-metadata-list.vue index c10c53550..c17f8eda2 100644 --- a/src/views/admin/components/lists/repository-metadata-list.vue +++ b/src/views/admin/components/lists/repository-metadata-list.vue @@ -371,7 +371,7 @@ export default { case 'add': if ( !$event.from.classList.contains('active-metadata-area') ) { this.addNewMetadatum(this.getMetadatumTypes()[$event.oldIndex], $event.newIndex); - $event.originalTarget.removeChild($event.item); + $event.to.removeChild($event.item); } break; case 'remove': diff --git a/src/views/admin/components/metadata-types/compound/child-metadata-list.vue b/src/views/admin/components/metadata-types/compound/child-metadata-list.vue index 9b1bcf63b..e72ad2dac 100644 --- a/src/views/admin/components/metadata-types/compound/child-metadata-list.vue +++ b/src/views/admin/components/metadata-types/compound/child-metadata-list.vue @@ -338,7 +338,7 @@ case 'add': if ( !$event.from.classList.contains('active-metadata-area') ) { this.addNewMetadatum(this.getMetadatumTypes()[$event.oldIndex], $event.newIndex); - $event.originalTarget.removeChild($event.item); + $event.to.removeChild($event.item); } break; case 'remove': From 0a9a9fed3fe380b2ad8e2281be4108d316d73e0c Mon Sep 17 00:00:00 2001 From: mateuswetah Date: Tue, 23 Apr 2024 16:53:23 -0300 Subject: [PATCH 2/3] Bump version number to 0.21.1. --- src/readme.txt | 2 +- src/tainacan.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/readme.txt b/src/readme.txt index 2a1729c81..48350fa01 100644 --- a/src/readme.txt +++ b/src/readme.txt @@ -4,7 +4,7 @@ Tags: museums, archives, GLAM, collections, repository Requires at least: 5.9 Tested up to: 6.5 Requires PHP: 7.0 -Stable tag: 0.21.0 +Stable tag: 0.21.1 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-3.0.html diff --git a/src/tainacan.php b/src/tainacan.php index 572e48dd8..37c68284e 100644 --- a/src/tainacan.php +++ b/src/tainacan.php @@ -5,17 +5,17 @@ Plugin URI: https://tainacan.org/ Description: Open source, powerful and flexible repository platform for WordPress. Manage and publish you digital collections as easily as publishing a post to your blog, while having all the tools of a professional repository platform. Author: Tainacan.org Author URI: https://tainacan.org/ -Version: 0.21.0 +Version: 0.21.1 Requires at least: 5.9 Tested up to: 6.5 Requires PHP: 7.0 -Stable tag: 0.21.0 +Stable tag: 0.21.1 Text Domain: tainacan License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-3.0.html */ -const TAINACAN_VERSION = '0.21.0'; +const TAINACAN_VERSION = '0.21.1'; defined( 'ABSPATH' ) or die( 'No script kiddies please!' ); $TAINACAN_BASE_URL = plugins_url('', __FILE__); From b46316178218b8c0be09935715deb5f82b65c7f0 Mon Sep 17 00:00:00 2001 From: mateuswetah Date: Thu, 25 Apr 2024 11:15:39 -0300 Subject: [PATCH 3/3] Adds missing style rules for URL metadata now that is part of core. --- src/views/admin/scss/tainacan-admin.scss | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/views/admin/scss/tainacan-admin.scss b/src/views/admin/scss/tainacan-admin.scss index b3ff64015..7f1498925 100644 --- a/src/views/admin/scss/tainacan-admin.scss +++ b/src/views/admin/scss/tainacan-admin.scss @@ -304,6 +304,7 @@ html.is-clipped .page-container-small:not(.is-filters-menu-open) { .taginput-container .input:hover { border: none !important; } +.metadata-type-url .multivalue-separator, .metadata-type-ainacan_url_plugin_metadata_type .multivalue-separator, .metadata-type-tainacan_url_plugin_metadata_type .multivalue-separator { display: block; @@ -314,10 +315,12 @@ html.is-clipped .page-container-small:not(.is-filters-menu-open) { color: transparent !important; margin: 1em auto 1em 0 !important; } +.metadata-type-url .wp-block-buttons, .metadata-type-ainacan_url_plugin_metadata_type .wp-block-buttons, .metadata-type-tainacan_url_plugin_metadata_type .wp-block-buttons { display: flex !important; } +.metadata-type-url .wp-block-buttons>.wp-block-button, .metadata-type-ainacan_url_plugin_metadata_type .wp-block-buttons>.wp-block-button, .metadata-type-tainacan_url_plugin_metadata_type .wp-block-buttons>.wp-block-button { width: auto !important;