Added some css classes to the contextual menu, and a temporary css hack.

This commit is contained in:
naomi 2021-04-05 19:43:46 +01:00
parent 27f0b33faa
commit 0df9cfecc8
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,10 @@
/* MOVE THIS INTO MORE!! */
.top_ups_bought.add-activity-link {
display: none;
}
/* */
body {
font-size: 100% !important;
}

View File

@ -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 .= "&nbsp;&nbsp; <span class='$machine_name add-activity-link'>$link</span>";
}
$markup .= "</p>";
return "<div class='openactor_add_links'>$markup</div>";