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 { .sr-only {
position: absolute; position: absolute;
width: 1px; 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'; @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 { .wp-block-tainacan-dynamic-items-list {
margin-top: 2em; margin-top: 2em;
margin-bottom: 2em; margin-bottom: 2em;

View File

@ -555,6 +555,14 @@ export default {
this.tainacanAxios.get(metadataEndpoint) this.tainacanAxios.get(metadataEndpoint)
.then(response => { .then(response => {
this.displayedMetadataObjects = response.data; 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.fetchItems();
this.isLoadingMetadata = false; this.isLoadingMetadata = false;
}); });
@ -575,5 +583,12 @@ export default {
<style lang="scss"> <style lang="scss">
@import './style.scss'; @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> </style>