1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-29 18:19:39 +02:00

UI: improve alignments with submit button & budget donut (#2131)

This commit is contained in:
Joseph Ho 2025-04-20 21:06:54 -04:00 committed by GitHub
parent 21623eeb2d
commit 08091d24f9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -51,7 +51,7 @@ class StyledFormBuilder < ActionView::Helpers::FormBuilder
def submit(value = nil, options = {})
default_options = {
data: { turbo_submits_with: "Submitting..." },
class: "btn btn--primary w-full"
class: "btn btn--primary w-full justify-center"
}
merged_options = default_options.merge(options)

View file

@ -6,7 +6,7 @@
latest_budget: @latest_budget %>
<div class="flex flex-col items-start gap-4 md:flex-row">
<div class="w-full md:w-[300px] space-y-4">
<div class="w-full md:max-w-[300px] space-y-4">
<div class="h-[300px] bg-container rounded-xl shadow-border-xs p-8">
<% if @budget.available_to_allocate.negative? %>
<%= render "budgets/over_allocation_warning", budget: @budget %>