app/components/lookbook/header/component.html.erb in lookbook-2.0.0.beta.4 vs app/components/lookbook/header/component.html.erb in lookbook-2.0.0.beta.5

- old
+ new

@@ -1,17 +1,21 @@ <%= render_component_tag :header do %> <%= lookbook_render :toolbar, class: "!bg-lookbook-header-bg !text-lookbook-header-text !border-lookbook-header-border" do |toolbar| %> <% toolbar.with_section padded: true do %> - <div class="flex items-center space-x-3"> - <%= lookbook_render :logo, size: 4 %> - <% if branding.present? %> - <a - <% if landing_path %>href="<%= landing_path %>"<% end %> - class="text-sm truncate uppercase font-black tracking-wider text-lookbook-branding-text"> - <%= branding %> - </a> + <a <% if landing_path %>href="<%= landing_path %>"<% end %> class="flex items-center space-x-3"> + <% if project_logo.present? %> + <i class="header-project-icon"> + <%== project_logo %> + </i> + <% elsif project_logo != false %> + <%= lookbook_render :logo, size: 3.7 %> <% end %> - </div> + <% if project_name.present? %> + <span class="text-sm truncate uppercase font-black tracking-wider text-lookbook-branding-text"> + <%= project_name %> + </span> + <% end %> + </a> <% end %> <% toolbar.with_section padded: false, align: :right, class: "flex items-center -mt-px" do %> <div x-show="loading" x-cloak> <svg class="animate-spin h-3.5 w-3.5 text-lookbook-header-text opacity-60" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"> \ No newline at end of file