From 3597e0cf29ebe0c7e33263193a6f328e838cd590 Mon Sep 17 00:00:00 2001 From: mateuswetah Date: Fri, 13 Mar 2020 17:22:09 -0300 Subject: [PATCH 1/2] Fixes term edition form not opening on the right place on terms list. --- src/views/admin/components/lists/terms-list.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/admin/components/lists/terms-list.vue b/src/views/admin/components/lists/terms-list.vue index 91b121b4d..6a5ee2bf3 100644 --- a/src/views/admin/components/lists/terms-list.vue +++ b/src/views/admin/components/lists/terms-list.vue @@ -445,7 +445,7 @@ export default { }, eventOnEditTerm(term) { // Position edit form in a visible area - let container = document.getElementById('repository-container'); + let container = document.getElementsByClassName('repository-level-page')[0]; if (container && container.scrollTop && container.scrollTop > 80) this.termEditionFormTop = container.scrollTop - 80; else From 3779fe8f19ee134ade8b82ff0d7510081128ae64 Mon Sep 17 00:00:00 2001 From: mateuswetah Date: Mon, 16 Mar 2020 11:11:04 -0300 Subject: [PATCH 2/2] Fixes hover color for item edition form buttons. --- .../admin/components/edition/item-edition-form.vue | 11 +++++++++++ src/views/admin/pages/lists/items-page.vue | 4 ++-- src/views/admin/pages/singles/item-page.vue | 7 +++++++ 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/src/views/admin/components/edition/item-edition-form.vue b/src/views/admin/components/edition/item-edition-form.vue index db603b859..81737c88b 100644 --- a/src/views/admin/components/edition/item-edition-form.vue +++ b/src/views/admin/components/edition/item-edition-form.vue @@ -1708,6 +1708,17 @@ export default { background-color: transparent; color: var(--tainacan-turquoise5); border: none; + + .icon { + margin-right: 5px !important; + } + + &:hover, + &:focus, + &:active { + background-color: transparent !important; + color: var(--tainacan-turquoise5) !important; + } } } diff --git a/src/views/admin/pages/lists/items-page.vue b/src/views/admin/pages/lists/items-page.vue index 3c6650fad..fe633607a 100644 --- a/src/views/admin/pages/lists/items-page.vue +++ b/src/views/admin/pages/lists/items-page.vue @@ -402,9 +402,9 @@ :disabled="totalItems == undefined || totalItems <= 0" @click="openExposersModal()"> - + - {{ $i18n.get('label_view_as') }} + {{ $i18n.get('label_view_as') }} diff --git a/src/views/admin/pages/singles/item-page.vue b/src/views/admin/pages/singles/item-page.vue index 6947573b1..6afb2517c 100644 --- a/src/views/admin/pages/singles/item-page.vue +++ b/src/views/admin/pages/singles/item-page.vue @@ -663,6 +663,13 @@ .icon { margin-right: 5px !important; } + + &:hover, + &:focus, + &:active { + background-color: transparent !important; + color: var(--tainacan-turquoise5) !important; + } } }