app/views/layouts/lookbook/page.html.erb in lookbook-1.0.0.beta.4 vs app/views/layouts/lookbook/page.html.erb in lookbook-1.0.0.beta.5
- old
+ new
@@ -3,47 +3,47 @@
class="h-[calc(100vh_-_40px)]"
x-data="{}"
@navigation:complete.window="$refs.scroller.scrollTop = 0">
<div class="h-full bg-lookbook-page relative">
- <% unless @error %>
-
- <div class="absolute top-0 right-0 pt-1 pr-0 pl-1 pb-1 rounded-bl-md">
- <div class="bg-lookbook-page opacity-90 absolute inset-0 w-full h-full z-0"></div>
- <div class="relative z-10 flex items-center">
+ <% unless @error %>
- <% if @previous_page %>
- <%= render_component :button,
- size: :lg,
- icon: :chevron_left,
- tooltip: "Previous page",
- href: lookbook_page_path(@previous_page.lookup_path),
- class: "pr-0.5 bg-transparent" %>
- <% else %>
- <%= render_component :button,
- size: :lg,
- icon: :chevron_left,
- disabled: true,
- class: "opacity-50 !cursor-default pr-0.5 bg-transparent" %>
- <% end %>
+ <div class="absolute top-0 right-0 pt-1 pr-0 pl-1 pb-1 rounded-bl-md">
+ <div class="bg-lookbook-page opacity-90 absolute inset-0 w-full h-full z-0"></div>
+ <div class="relative z-10 flex items-center">
+
+ <% if @previous_page %>
+ <%= render_component :button,
+ size: :lg,
+ icon: :chevron_left,
+ tooltip: "Previous page",
+ href: lookbook_page_path(@previous_page.lookup_path),
+ class: "pr-0.5 bg-transparent" %>
+ <% else %>
+ <%= render_component :button,
+ size: :lg,
+ icon: :chevron_left,
+ disabled: true,
+ class: "opacity-50 !cursor-default pr-0.5 bg-transparent" %>
+ <% end %>
- <% if @next_page %>
- <%= render_component :button,
- size: :lg,
- icon: :chevron_right,
- tooltip: "Next page",
- href: lookbook_page_path(@next_page.lookup_path),
- class: "pl-0.5 bg-transparent" %>
- <% else %>
- <%= render_component :button,
- size: :lg,
- icon: :chevron_right,
- disabled: true,
- class: "opacity-50 !cursor-default pl-0.5 bg-transparent" %>
- <% end %>
+ <% if @next_page %>
+ <%= render_component :button,
+ size: :lg,
+ icon: :chevron_right,
+ tooltip: "Next page",
+ href: lookbook_page_path(@next_page.lookup_path),
+ class: "pl-0.5 bg-transparent" %>
+ <% else %>
+ <%= render_component :button,
+ size: :lg,
+ icon: :chevron_right,
+ disabled: true,
+ class: "opacity-50 !cursor-default pl-0.5 bg-transparent" %>
+ <% end %>
+ </div>
</div>
- </div>
- <% end %>
+ <% end %>
<%= yield %>
</div>
</div>
\ No newline at end of file