Adds more style dependencies to dynamic items block to support tainacan view modes. #872.

This commit is contained in:
mateuswetah 2024-05-07 16:01:14 -03:00
parent 11f66edc10
commit cd00a62ffa
4 changed files with 17 additions and 6 deletions

View File

@ -1,4 +1,3 @@
@import url(../../../../../node_modules/another-vue3-blurhash/dist/style.css);
.sr-only {
position: absolute;
width: 1px;

File diff suppressed because one or more lines are too long

View File

@ -1,8 +1,5 @@
@import '../../scss/gutenberg-blocks-variables.scss';
// Vue Blurhash transtition effect
@import '../../../../../node_modules/another-vue3-blurhash/dist/style.css';
.wp-block-tainacan-dynamic-items-list {
margin-top: 2em;
margin-bottom: 2em;

View File

@ -555,6 +555,14 @@ export default {
this.tainacanAxios.get(metadataEndpoint)
.then(response => {
this.displayedMetadataObjects = response.data;
this.displayedMetadataObjects.unshift({
name: this.wpI18n('Thumbnail', 'tainacan'),
metadatum: 'row_thumbnail',
metadata_type: undefined,
slug: 'thumbnail',
id: undefined,
display: true
});
this.fetchItems();
this.isLoadingMetadata = false;
});
@ -576,4 +584,11 @@ export default {
@import './style.scss';
// Tooltips
@import url('floating-vue/dist/style.css');
@import '../../../admin/scss/_tooltips.scss';
// Vue Blurhash transtition effect
@import '../../../../../node_modules/another-vue3-blurhash/dist/style.css';
</style>