From 11239ca701ade0dad55bd0aa54908c4978dc495c Mon Sep 17 00:00:00 2001 From: David Alejandro <15317732+davidalejandroaguilar@users.noreply.github.com> Date: Fri, 30 Aug 2024 04:02:18 +0000 Subject: [PATCH] Ensure each sidebar menu section is in its own item block --- app/views/components/sidebar.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/views/components/sidebar.rb b/app/views/components/sidebar.rb index b7e7892..6cfeb8b 100644 --- a/app/views/components/sidebar.rb +++ b/app/views/components/sidebar.rb @@ -10,16 +10,18 @@ def view_template div class: "h-4" Menu do |menu| - menu.item do - menu.submenu :collapsible, :open do |submenu| + menu.item do |item| + item.submenu :collapsible, :open do |submenu| submenu.title { "Docs" } submenu.item do link_to "Installation", docs_path(:installation) end end + end - menu.submenu :collapsible, :open do |submenu| + menu.item do |item| + item.submenu :collapsible, :open do |submenu| submenu.title { "Components" } Category.all.each do |category|