mirror of
https://github.com/we-promise/sure.git
synced 2026-04-19 12:04:08 +00:00
Linter
This commit is contained in:
@@ -33,7 +33,7 @@
|
||||
<%= helpers.icon("search", class: "absolute inset-0 ml-2 transform top-1/2 -translate-y-1/2") %>
|
||||
</div>
|
||||
<% end %>
|
||||
<div data-list-filter-target="list" data-select-target="content" class="flex flex-col gap-0.5 max-h-64 overflow-auto"
|
||||
<div data-list-filter-target="list" data-select-target="content" class="flex flex-col gap-0.5 max-h-64 overflow-auto"
|
||||
role="listbox" tabindex="-1">
|
||||
<% items.each do |item| %>
|
||||
<% is_selected = item[:value] == selected_value %>
|
||||
@@ -91,4 +91,4 @@
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -53,7 +53,7 @@
|
||||
<% pending_invitations = @invitations_by_family[family.id] || [] %>
|
||||
<details class="bg-container-inset rounded-lg overflow-hidden group"
|
||||
data-controller="admin-invitation-delete"
|
||||
data-admin-invitation-delete-delete-all-label-value="<%= t('.invitations.delete_all') %>">
|
||||
data-admin-invitation-delete-delete-all-label-value="<%= t(".invitations.delete_all") %>">
|
||||
<summary class="flex items-center justify-between gap-4 px-4 py-3 cursor-pointer select-none hover:bg-surface-hover">
|
||||
<div class="flex items-center gap-3">
|
||||
<%= icon "users", class: "w-5 h-5 text-secondary shrink-0" %>
|
||||
@@ -75,7 +75,7 @@
|
||||
</span>
|
||||
<% elsif sub %>
|
||||
<span class="inline-flex items-center px-2 py-0.5 rounded text-xs font-medium
|
||||
<%= sub.active? ? 'bg-green-100 text-green-800' : 'bg-surface text-secondary' %>">
|
||||
<%= sub.active? ? "bg-green-100 text-green-800" : "bg-surface text-secondary" %>">
|
||||
<%= sub.status.humanize %>
|
||||
</span>
|
||||
<% else %>
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
<div class="flex-1 text-sm">
|
||||
<div class="font-medium text-primary"><%= entry.name %></div>
|
||||
<div class="text-xs text-secondary">
|
||||
<%= I18n.l(entry.date, format: :short) %> •
|
||||
<%= I18n.l(entry.date, format: :short) %> •
|
||||
<%= number_to_currency(entry.amount.abs, unit: Money::Currency.new(entry.currency).symbol) %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
} do |form| %>
|
||||
<div class="space-y-3">
|
||||
<div>
|
||||
<div class="flex flex-col items-center justify-center w-full py-8 border border-secondary border-dashed rounded-xl cursor-pointer bg-surface-inset hover:bg-surface-inset-hover transition-colors text-center px-4"
|
||||
<div class="flex flex-col items-center justify-center w-full py-8 border border-secondary border-dashed rounded-xl cursor-pointer bg-surface-inset hover:bg-surface-inset-hover transition-colors text-center px-4"
|
||||
data-action="click->attachment-upload#triggerFileInput">
|
||||
|
||||
<div data-attachment-upload-target="uploadText" class="flex flex-col items-center">
|
||||
@@ -28,7 +28,7 @@
|
||||
|
||||
<%= form.file_field :attachments,
|
||||
multiple: true,
|
||||
accept: Transaction::ALLOWED_CONTENT_TYPES.join(','),
|
||||
accept: Transaction::ALLOWED_CONTENT_TYPES.join(","),
|
||||
class: "hidden",
|
||||
data: {
|
||||
attachment_upload_target: "fileInput",
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
<span class="border text-sm font-medium px-3 py-1 rounded-full inline-flex items-center gap-2"
|
||||
style="
|
||||
background-color: color-mix(in oklab, <%= tag_color %> 10%, transparent);
|
||||
border-color: color-mix(in oklab, <%= tag_color%> 20%, transparent);
|
||||
border-color: color-mix(in oklab, <%= tag_color %> 20%, transparent);
|
||||
color: <%= tag_color %>;">
|
||||
<span class="size-1.5 rounded-full" style="background-color: <%= tag_color %>;"></span>
|
||||
<%= tag.name %>
|
||||
|
||||
Reference in New Issue
Block a user