app/components/lookbook/nav/component.html.erb in lookbook-1.0.0.beta.4 vs app/components/lookbook/nav/component.html.erb in lookbook-1.0.0.beta.5
- old
+ new
@@ -1,14 +1,10 @@
<%= render_component_tag class: "flex flex-col overflow-hidden h-full",
"@filter:change.stop": "filter($event.detail.text)" do %>
- <% if label.present? %>
- <%= render_component :toolbar do |toolbar| %>
- <% toolbar.section padded: true do %>
- <h4 class="pt-1"><%= label %></h4>
- <% end %>
- <% end %>
+ <% if toolbar %>
+ <%= toolbar %>
<% end %>
<% if filter && items.any? %>
<div class="p-2 pb-0">
<%= filter %>
@@ -19,14 +15,14 @@
<% if items.any? %>
<ul class="py-2" x-ref="items" x-show="!empty" x-cloak>
<%= safe_join(items) %>
</ul>
<div class="p-4 text-center" x-show="empty" x-cloak>
- <h4 class="opacity-50 italic">No matching <%= label.downcase %>.</h4>
+ <h4 class="opacity-50 italic">No matching results.</h4>
</div>
<% else %>
<div class="p-4 text-center">
- <h4 class="opacity-50 italic">No <%= label.downcase %> available.</h4>
+ <h4 class="opacity-50 italic">Nothing here yet.</h4>
</div>
<% end %>
</div>
<% end %>
\ No newline at end of file