The personal finance app for everyone
import: Align elements correctly while importing CSV. (#2210)
Joseph Hofea1baeb1e1c
diff --git a/app/views/imports/_importing.html.erb b/app/views/imports/_importing.html.erbindex 3815cc07..490132a8 100644--- a/app/views/imports/_importing.html.erb+++ b/app/views/imports/_importing.html.erb@@ -11,9 +11,9 @@<p class="text-sm text-secondary">Your import is in progress. Check the imports menu for status updates or click 'Check Status' to refresh the page for updates. Feel free to continue using the app.</p></div>- <div class="space-y-2">- <%= render LinkComponent.new(text: "Check status", href: import_path(import), variant: "primary") %>- <%= render LinkComponent.new(text: "Back to dashboard", href: root_path, variant: "secondary") %>+ <div class="space-y-2 flex flex-col">+ <%= render LinkComponent.new(text: "Check status", href: import_path(import), variant: "primary", full_width: true) %>+ <%= render LinkComponent.new(text: "Back to dashboard", href: root_path, variant: "secondary", full_width: true) %></div></div></div>diff --git a/app/views/imports/_table.html.erb b/app/views/imports/_table.html.erbindex 0339261f..4b7c32f5 100644--- a/app/views/imports/_table.html.erb+++ b/app/views/imports/_table.html.erb@@ -1,5 +1,5 @@<%# locals: (headers: [], rows: [], caption: nil) %>-<div class="bg-container-inset rounded-xl overflow-hidden mx-1 md:mx-auto p-3 pl-2 md:pr-2 pr-0">+<div class="bg-container-inset rounded-xl overflow-hidden mx-1 md:mx-auto p-3 pl-2 pr-2"><% if caption %><div class="flex items-center mb-4"><div class="text-gray-500 mr-2">@@ -9,7 +9,7 @@</div><% end %><div class="overflow-x-auto -webkit-overflow-scrolling-touch">- <div class="inline-block min-w-full sm:w-full border border-secondary rounded-md shadow-border-xs text-sm bg-container">+ <div class="inline-block min-w-fit sm:w-full border border-secondary rounded-md shadow-border-xs text-sm bg-container"><table class="min-w-full divide-y divide-alpha-black-200"><thead><tr>