From 0df9cfecc8d67827fbc7d68d33ebaad0a01bd6ee Mon Sep 17 00:00:00 2001
From: naomi
Date: Mon, 5 Apr 2021 19:43:46 +0100
Subject: [PATCH] Added some css classes to the contextual menu, and a
temporary css hack.
---
css/opencase.css | 7 +++++++
.../opencase_no_cases/src/Plugin/Block/ContextualMenu.php | 2 +-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/css/opencase.css b/css/opencase.css
index db31f80..01f8a2b 100644
--- a/css/opencase.css
+++ b/css/opencase.css
@@ -1,3 +1,10 @@
+/* MOVE THIS INTO MORE!! */
+.top_ups_bought.add-activity-link {
+ display: none;
+}
+
+/* */
+
body {
font-size: 100% !important;
}
diff --git a/modules/opencase_no_cases/src/Plugin/Block/ContextualMenu.php b/modules/opencase_no_cases/src/Plugin/Block/ContextualMenu.php
index 150a8c4..7cebec0 100644
--- a/modules/opencase_no_cases/src/Plugin/Block/ContextualMenu.php
+++ b/modules/opencase_no_cases/src/Plugin/Block/ContextualMenu.php
@@ -57,7 +57,7 @@ class ContextualMenu extends BlockBase {
$url = \Drupal\Core\Url::fromRoute("entity.oc_activity.add_form", ['oc_activity_type' => $machine_name]);
$url->setOption('query', ['actor_id' => $actor_id, 'destination' => $redirect_destination]);
$link = \Drupal\Core\Link::fromTextAndUrl($label, $url)->toString();
- $markup .= " $link";
+ $markup .= " $link";
}
$markup .= "
";
return "$markup
";