Css adjustments for some sticky subheaders and panels.

This commit is contained in:
mateuswetah 2022-07-29 17:31:26 -03:00
parent e2b91b72e9
commit 2e02cc616a
5 changed files with 15 additions and 1 deletions

View File

@ -770,6 +770,7 @@ export default {
title: this.$i18n.get('label_warning'),
message: this.$i18n.get('info_warning_metadatum_delete'),
onConfirm: () => {
this.isUpdatingMetadataOrder = true;
this.deleteMetadatum({
collectionId: this.collectionId,
metadatumId: removedMetadatum.id,
@ -779,6 +780,7 @@ export default {
this.updateMetadataOrder(sectionIndex);
})
.catch(() => {
this.isUpdatingMetadataOrder = false;
this.$console.log("Error deleting metadatum.")
});
}
@ -797,11 +799,13 @@ export default {
title: this.$i18n.get('label_warning'),
message: this.$i18n.get('info_warning_metadata_section_delete'),
onConfirm: () => {
this.isUpdatingMetadataSectionsOrder = true;
this.deleteMetadataSection({ collectionId: this.collectionId, metadataSectionId: removedMetadataSection.id })
.then(() => {
this.updateMetadataSectionsOrder();
})
.catch(() => {
this.isUpdatingMetadataSectionsOrder = false;
this.$console.log("Error deleting metadata section.")
});
}

View File

@ -200,6 +200,9 @@ export default {
margin: 0;
max-width: 380px;
min-width: 20.8333333%;
max-height: calc(100vh - 7.75em);
top: -28px;
position: sticky;
font-size: 0.875em;
@media screen and (max-width: 769px) {

View File

@ -195,6 +195,10 @@
@import '../../scss/_variables.scss';
.sub-header {
position: sticky;
top: calc(-1 * var(--tainacan-container-padding));
z-index: 2;
background: var(--tainacan-background-color);
min-height: $header-height;
height: auto;
padding-left: 0;

View File

@ -187,6 +187,10 @@ $checkbox-border-width: 1px;
display: grid;
}
@mixin logs-container {
position: sticky;
top: calc(-1 * var(--tainacan-container-padding));
z-index: 2;
background: var(--tainacan-background-color);
min-height: $header-height;
height: auto;
padding-left: 0;

View File

@ -120,7 +120,6 @@ export default {
handler() {
if (this.items && this.items.length > 0 && !this.isLoading) {
this.$nextTick(() => {
console.log(this.items.length)
if (this.masonry !== false)
this.masonry.destroy();