1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-09 23:45:21 +02:00
This commit is contained in:
neo773 2025-04-13 23:34:27 +05:30
parent e1296de458
commit a36ac3253c
No known key found for this signature in database
GPG key ID: 6B43F29FCC69B333
2 changed files with 15 additions and 2 deletions

View file

@ -8,7 +8,16 @@
{ name: "Confirm", path: import_path(import), is_complete: import.complete?, step_number: 5 }
].reject { |step| step[:name] == "Map" && import.mapping_steps.empty? } %>
<ul class="flex items-center gap-2">
<% content_for :mobile_import_progress do %>
<% active_step = steps.detect { |s| request.path.eql?(s[:path]) } %>
<% if active_step.present? %>
<div class="md:hidden text-center text-secondary text-md my-2">
<span class="text-gray-500">Step <%= active_step[:step_number] %> of <%= steps.size %></span>
</div>
<% end %>
<% end %>
<ul class="hidden md:flex items-center gap-2">
<% steps.each_with_index do |step, idx| %>
<li class="flex items-center gap-2 group">
<% is_current = request.path == step[:path] %>

View file

@ -14,7 +14,11 @@
<% end %>
</header>
<main class="grow px-8 pt-12 pb-32 overflow-y-auto">
<main class="grow px-8 md:pt-12 pb-32 overflow-y-auto">
<div class="flex md:hidden justify-center w-full">
<%= yield :mobile_import_progress %>
</div>
<%= yield %>
</main>
</div>