From 6be3e3639c4ab41af9f494433a34dcb5862e7a64 Mon Sep 17 00:00:00 2001 From: Paul Weidner Date: Fri, 25 Aug 2023 11:37:10 -0700 Subject: [PATCH] Render metrics in small buttons --- modules/core/ui/metrics/src/Plugin/Block/FarmMetricsBlock.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/ui/metrics/src/Plugin/Block/FarmMetricsBlock.php b/modules/core/ui/metrics/src/Plugin/Block/FarmMetricsBlock.php index d3ae73bc5..ce858d451 100644 --- a/modules/core/ui/metrics/src/Plugin/Block/FarmMetricsBlock.php +++ b/modules/core/ui/metrics/src/Plugin/Block/FarmMetricsBlock.php @@ -153,7 +153,7 @@ class FarmMetricsBlock extends BlockBase implements ContainerFactoryPluginInterf $count = $query->count()->execute(); $route_name = "view.farm_$entity_type.page_type"; - $metrics[] = Link::createFromRoute($bundle_info['label'] . ': ' . $count, $route_name, ['arg_0' => $bundle], ['attributes' => ['class' => ['metric', 'button']]])->toString(); + $metrics[] = Link::createFromRoute($bundle_info['label'] . ': ' . $count, $route_name, ['arg_0' => $bundle], ['attributes' => ['class' => ['metric', 'button', 'button--small']]])->toString(); } return $metrics;