From b5a6ef1312f02a261a902be68a6b219d4f566550 Mon Sep 17 00:00:00 2001
From: Gregor Gawol <gawol@ub.uni-leipzig.de>
Date: Tue, 27 Oct 2020 10:08:00 +0100
Subject: [PATCH] refs #18043 [finc: post-BARF-VF5.1 fixes] fixes delete button
 in fav lists

* adds del-btn class for SCSS to work
* refines SCSS for dropdown to open in correct position
---
 themes/finc/scss/compiled.scss                | 35 +++++++++++++++++++
 .../DefaultRecord/list-entry.phtml            |  2 +-
 2 files changed, 36 insertions(+), 1 deletion(-)

diff --git a/themes/finc/scss/compiled.scss b/themes/finc/scss/compiled.scss
index acf94c5a8cb..9e652f3cd80 100644
--- a/themes/finc/scss/compiled.scss
+++ b/themes/finc/scss/compiled.scss
@@ -587,11 +587,13 @@ select {
 a.toggle {
   color: inherit;
   text-decoration: inherit;
+
   &:active,
   &:focus,
   &:hover {
     text-decoration: inherit;
   }
+
   &::after {
     font-family: 'FontAwesome';
     content: $fa-var-angle-down;
@@ -604,9 +606,11 @@ span.notation ul {
   @media (max-width: $screen-md-min) {
     padding-inline-start: 0;
   }
+
   li {
     list-style-type: none;
   }
+
   li:before {
     margin-right: 0.5em;
     font-family: 'FontAwesome';
@@ -2523,6 +2527,28 @@ footer ul {
 
 // Bookbag - END
 
+// Result List
+
+.result-links {
+  // Favorites list in MyAccount
+  .edit.tool,
+  .del-button {
+    a {
+      margin-top: 1em;
+
+      @media (max-width: $screen-sm-max) {
+        margin-top: 0;
+      }
+    }
+
+    li a {
+      margin-top: 0;
+    }
+  }
+}
+
+// Result List - END
+
 // Translate feature (Admin panel)
 #set-translation-form {
   margin-top: 2em;
@@ -2755,6 +2781,15 @@ input {
   }
 }
 
+// Delete dropdown in favorites list
+.open > .dropdown-menu {
+  .template-dir-myresearch.template-name-mylist .result-links & {
+    float: none;
+    position: relative;
+  }
+}
+
+
 // AMSL
 
 .template-dir-amsl.template-name-sources-list {
diff --git a/themes/finc/templates/RecordDriver/DefaultRecord/list-entry.phtml b/themes/finc/templates/RecordDriver/DefaultRecord/list-entry.phtml
index 851e6ce67f1..991ba371499 100644
--- a/themes/finc/templates/RecordDriver/DefaultRecord/list-entry.phtml
+++ b/themes/finc/templates/RecordDriver/DefaultRecord/list-entry.phtml
@@ -213,7 +213,7 @@ if ($cover):
           ?>
           <div class="dropdown">
             <i class="fa fa-fw fa-trash-o" aria-hidden="true"></i>
-            <a class="dropdown-toggle" id="<?= $dLabel ?>"
+            <a class="dropdown-toggle del-button" id="<?= $dLabel ?>"
                role="button" data-toggle="dropdown"
                href="<?= $deleteUrlGet ?>">
               <?= $this->transEsc('Delete') ?>
-- 
GitLab