From 016c42b717ecc1fb0456872871ad7086d13c7a67 Mon Sep 17 00:00:00 2001 From: Aaron Axvig Date: Fri, 23 Jan 2026 22:09:38 -0600 Subject: [PATCH] Make layout more compact --- css/archive_tree.css | 8 ++++++++ src/Plugin/Block/ArchiveTreeBlock.php | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/css/archive_tree.css b/css/archive_tree.css index 8ba2413..70ae630 100644 --- a/css/archive_tree.css +++ b/css/archive_tree.css @@ -1,3 +1,11 @@ +.archive-tree-block details, +.archive-tree-block .archive-tree-year, +.archive-tree-block details > summary.archive-tree-year { + margin-top: 0; + margin-bottom: 0; + padding-top: 0; + padding-bottom: 0; +} .archive-tree-year { font-weight: bold; } diff --git a/src/Plugin/Block/ArchiveTreeBlock.php b/src/Plugin/Block/ArchiveTreeBlock.php index 5241a78..9af9e79 100644 --- a/src/Plugin/Block/ArchiveTreeBlock.php +++ b/src/Plugin/Block/ArchiveTreeBlock.php @@ -89,7 +89,7 @@ class ArchiveTreeBlock extends BlockBase { } return [ - '#markup' => $output, + '#markup' => '
' . $output . '
', '#allowed_tags' => ['details', 'summary', 'a', 'div'], '#attached' => [ 'library' => [