Make layout more compact

This commit is contained in:
2026-01-23 22:09:38 -06:00
parent 8aa70707a9
commit 016c42b717
2 changed files with 9 additions and 1 deletions

View File

@@ -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;
}

View File

@@ -89,7 +89,7 @@ class ArchiveTreeBlock extends BlockBase {
}
return [
'#markup' => $output,
'#markup' => '<div class="archive-tree-block">' . $output . '</div>',
'#allowed_tags' => ['details', 'summary', 'a', 'div'],
'#attached' => [
'library' => [