1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-09 23:45:21 +02:00

Lint fixes

This commit is contained in:
Zach Gollwitzer 2025-04-30 17:39:03 -04:00
parent 64e38dc6c2
commit 101950172f
14 changed files with 36 additions and 36 deletions

View file

@ -1,8 +1,8 @@
<%= tag.div style: variant == :surface ? nil :container_styles,
<%= tag.div style: variant == :surface ? nil :container_styles,
class: container_classes do %>
<% if icon %>
<%= helpers.icon(icon, size: icon_size, color: "current") %>
<% elsif text %>
<%= tag.span text.first, class: text_classes %>
<% end %>
<% end %>
<% end %>

View file

@ -24,9 +24,9 @@
data: { "auto-submit-form-target": "auto" } %>
<% end %>
<%= form.select :period,
Period.as_options,
{ selected: period.key },
<%= form.select :period,
Period.as_options,
{ selected: period.key },
data: { "auto-submit-form-target": "auto" },
class: "bg-container border border-secondary font-medium rounded-lg px-3 py-2 text-sm pr-7 cursor-pointer text-primary focus:outline-hidden focus:ring-0" %>
</div>

View file

@ -13,10 +13,10 @@
<%= icon(budget_category.category.lucide_icon, color: "current") %>
<% else %>
<%= render FilledIconComponent.new(
variant: :text,
hex_color: budget_category.category.color,
text: budget_category.category.name,
size: "sm",
variant: :text,
hex_color: budget_category.category.color,
text: budget_category.category.name,
size: "sm",
rounded: true
) %>
<% end %>

View file

@ -23,4 +23,4 @@
<% end %>
<p class="text-xs text-secondary text-center mt-2">Disable anytime. All data sent to our LLM providers is anonymized.</p>
</div>
</div>

View file

@ -5,8 +5,8 @@
<div class="grid grid-cols-12 items-center text-primary text-sm font-medium p-4">
<div class="col-span-4 flex items-center gap-4">
<%= render FilledIconComponent.new(
variant: :text,
text: currency.symbol,
variant: :text,
text: currency.symbol,
rounded: true,
size: "lg"
) %>

View file

@ -72,9 +72,9 @@
<%# DESKTOP - Left sidebar %>
<%= tag.div class: class_names(
"hidden lg:block py-4 overflow-y-auto shrink-0 max-w-[320px] transition-all duration-300",
"hidden lg:block py-4 overflow-y-auto shrink-0 max-w-[320px] transition-all duration-300",
Current.user.show_sidebar? ? expanded_sidebar_class : collapsed_sidebar_class,
),
),
data: { app_layout_target: "leftSidebar" } do %>
<% if content_for?(:sidebar) %>
<%= yield :sidebar %>
@ -109,9 +109,9 @@
<%# DESKTOP - Right sidebar %>
<%= tag.div class: class_names(
"hidden lg:block h-full overflow-y-auto shrink-0 max-w-[400px] transition-all duration-300",
"hidden lg:block h-full overflow-y-auto shrink-0 max-w-[400px] transition-all duration-300",
Current.user.show_ai_sidebar? ? expanded_sidebar_class : collapsed_sidebar_class,
),
),
data: { app_layout_target: "rightSidebar" } do %>
<%= tag.div id: "chat-container", class: "relative h-full", data: { controller: "chat hotkey", turbo_permanent: true } do %>
<div class="flex flex-col h-full justify-between shrink-0">

View file

@ -1,7 +1,7 @@
<%# This dialog is used as an override to the browser's confirm API when submitting forms with data-turbo-confirm %>
<%# See confirm_dialog_controller.js and _htmldoc.html.erb %>
<%= render DialogComponent.new(id: "confirm-dialog", auto_open: false, data: { controller: "confirm-dialog" }, width: "sm") do |dialog| %>
<% dialog.with_body do %>
<% dialog.with_body do %>
<form method="dialog" class="space-y-4">
<div class="space-y-2">
<div class="flex items-center justify-between gap-2">

View file

@ -7,4 +7,4 @@
<% end %>
</div>
<p class="text-sm"><%= number_to_percentage(weight, precision: 2) %></p>
</div>
</div>

View file

@ -16,9 +16,9 @@
</div>
<%= form_with url: root_path, method: :get, data: { controller: "auto-submit-form" } do |form| %>
<%= form.select :period,
Period.as_options,
{ selected: period.key },
<%= form.select :period,
Period.as_options,
{ selected: period.key },
data: { "auto-submit-form-target": "auto" },
class: "bg-container border border-secondary font-medium rounded-lg px-3 py-2 text-sm pr-7 cursor-pointer text-primary focus:outline-hidden focus:ring-0" %>
<% end %>

View file

@ -14,4 +14,4 @@
frame: :modal
) %>
</div>
</div>
</div>

View file

@ -13,9 +13,9 @@
<div class="max-w-full">
<%= tag.div class: ["flex items-center gap-2"] do %>
<%= render FilledIconComponent.new(
variant: :text,
text: entry.name,
size: "sm",
variant: :text,
text: entry.name,
size: "sm",
rounded: true
) %>

View file

@ -27,9 +27,9 @@
loading: "lazy" %>
<% else %>
<%= render FilledIconComponent.new(
variant: :text,
text: entry.name,
size: "sm",
variant: :text,
text: entry.name,
size: "sm",
rounded: true
) %>
<% end %>

View file

@ -17,10 +17,10 @@
nil %>
<%= form.label :merchants, value: merchant.name, class: "text-sm text-primary flex items-center gap-2" do %>
<%= render FilledIconComponent.new(
variant: :text,
hex_color: merchant.color,
text: merchant.name,
size: "sm",
variant: :text,
hex_color: merchant.color,
text: merchant.name,
size: "sm",
rounded: true
) %>

View file

@ -17,10 +17,10 @@
nil %>
<%= form.label :tags, value: tag.name, class: "text-sm text-primary flex items-center gap-2" do %>
<%= render FilledIconComponent.new(
variant: :text,
hex_color: tag.color || Tag::UNCATEGORIZED_COLOR,
text: tag.name,
size: "sm",
variant: :text,
hex_color: tag.color || Tag::UNCATEGORIZED_COLOR,
text: tag.name,
size: "sm",
rounded: true
) %>