app/views/lookbook/workbench/_header.html.erb in lookbook-0.3.0.beta.2 vs app/views/lookbook/workbench/_header.html.erb in lookbook-0.3.0

- old
+ new

@@ -1,10 +1,12 @@ <%= render "./shared/header" do %> <div class="flex items-center"> <div class="flex items-center space-x-1"> <strong class="whitespace-nowrap truncate"><%= @preview.label %></strong> - <span>/</span> - <span class="whitespace-nowrap truncate"><%= @example.label %></span> + <% if @preview.get_examples.many? %> + <span>/</span> + <span class="whitespace-nowrap truncate"><%= @example.label %></span> + <% end %> </div> </div> <div class="flex text-xs ml-auto font-monospace text-gray-700 space-x-1" x-show="$screen('md')"> <span x-text="`${previewViewportWidth}px`"></span> <span class="text-gray-500">x</span> \ No newline at end of file