Skip to content

Commit

Permalink
refactor: extract breadcrumbs partial (#3374)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianthedev authored Nov 1, 2024
1 parent 2652e70 commit 9dccf2a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 1 addition & 5 deletions app/components/avo/panel_component.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,7 @@
<div class="flex justify-center sm:justify-start flex-col sm:flex-row w-full flex-1 has-cover-photo:mt-0">
<%= render Avo::ProfilePhotoComponent.new profile_photo: @profile_photo %>
<div class="flex flex-col flex-1 w-full">
<% if display_breadcrumbs? %>
<div class="breadcrumbs text-center sm:text-left mb-2">
<%= helpers.render_avo_breadcrumbs(separator: helpers.svg("chevron-right", class: "inline-block h-3 stroke-current relative top-[-1px] ml-1")) if Avo.configuration.display_breadcrumbs %>
</div>
<% end %>
<%= render partial: "avo/partials/panel_breadcrumbs" if display_breadcrumbs? %>
<div class="flex-1 flex flex-col xl:flex-row justify-between gap-1 grow-0">
<div class="overflow-hidden flex flex-col">
<% if name_slot? %>
Expand Down
3 changes: 3 additions & 0 deletions app/views/avo/partials/_panel_breadcrumbs.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<div class="breadcrumbs text-center sm:text-left mb-2">
<%= render_avo_breadcrumbs(separator: svg("chevron-right", class: "inline-block h-3 stroke-current relative top-[-1px] mx-1")) %>
</div>

0 comments on commit 9dccf2a

Please sign in to comment.