1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-19 05:09:38 +02:00

Fix activity view "new" button styles

This commit is contained in:
Zach Gollwitzer 2025-07-10 15:30:22 -04:00
parent 1a2d973f4b
commit 188126d402
3 changed files with 3 additions and 10 deletions

View file

@ -1,6 +1,6 @@
<%= container do %> <%= container do %>
<% if icon && (icon_position != :right) %> <% if icon && (icon_position != :right) %>
<%= helpers.icon(icon, size: size, color: icon_color) %> <%= helpers.icon(icon, size: size, color: icon_color, class: icon_classes) %>
<% end %> <% end %>
<% unless icon_only? %> <% unless icon_only? %>

View file

@ -5,7 +5,7 @@ class ButtonishComponent < ViewComponent::Base
icon_classes: "fg-inverse" icon_classes: "fg-inverse"
}, },
secondary: { secondary: {
container_classes: "text-secondary bg-gray-50 theme-dark:bg-gray-700 hover:bg-gray-100 theme-dark:hover:bg-gray-600 disabled:bg-gray-200 theme-dark:disabled:bg-gray-600", container_classes: "text-primary bg-gray-50 theme-dark:bg-gray-700 hover:bg-gray-100 theme-dark:hover:bg-gray-600 disabled:bg-gray-200 theme-dark:disabled:bg-gray-600",
icon_classes: "fg-primary" icon_classes: "fg-primary"
}, },
destructive: { destructive: {

9
db/schema.rb generated
View file

@ -29,7 +29,7 @@ ActiveRecord::Schema[7.2].define(version: 2025_07_02_173231) do
t.uuid "accountable_id" t.uuid "accountable_id"
t.decimal "balance", precision: 19, scale: 4 t.decimal "balance", precision: 19, scale: 4
t.string "currency" t.string "currency"
t.virtual "classification", type: :string, as: "\nCASE\n WHEN ((accountable_type)::text = ANY (ARRAY[('Loan'::character varying)::text, ('CreditCard'::character varying)::text, ('OtherLiability'::character varying)::text])) THEN 'liability'::text\n ELSE 'asset'::text\nEND", stored: true t.virtual "classification", type: :string, as: "\nCASE\n WHEN ((accountable_type)::text = ANY ((ARRAY['Loan'::character varying, 'CreditCard'::character varying, 'OtherLiability'::character varying])::text[])) THEN 'liability'::text\n ELSE 'asset'::text\nEND", stored: true
t.uuid "import_id" t.uuid "import_id"
t.uuid "plaid_account_id" t.uuid "plaid_account_id"
t.decimal "cash_balance", precision: 19, scale: 4, default: "0.0" t.decimal "cash_balance", precision: 19, scale: 4, default: "0.0"
@ -215,12 +215,7 @@ ActiveRecord::Schema[7.2].define(version: 2025_07_02_173231) do
t.boolean "excluded", default: false t.boolean "excluded", default: false
t.string "plaid_id" t.string "plaid_id"
t.jsonb "locked_attributes", default: {} t.jsonb "locked_attributes", default: {}
t.index ["account_id", "date"], name: "index_entries_on_account_id_and_date"
t.index ["account_id"], name: "index_entries_on_account_id" t.index ["account_id"], name: "index_entries_on_account_id"
t.index ["amount"], name: "index_entries_on_amount"
t.index ["date"], name: "index_entries_on_date"
t.index ["entryable_id", "entryable_type"], name: "index_entries_on_entryable"
t.index ["excluded"], name: "index_entries_on_excluded"
t.index ["import_id"], name: "index_entries_on_import_id" t.index ["import_id"], name: "index_entries_on_import_id"
end end
@ -231,7 +226,6 @@ ActiveRecord::Schema[7.2].define(version: 2025_07_02_173231) do
t.date "date", null: false t.date "date", null: false
t.datetime "created_at", null: false t.datetime "created_at", null: false
t.datetime "updated_at", null: false t.datetime "updated_at", null: false
t.index ["date", "from_currency", "to_currency"], name: "index_exchange_rates_on_date_and_currencies"
t.index ["from_currency", "to_currency", "date"], name: "index_exchange_rates_on_base_converted_date_unique", unique: true t.index ["from_currency", "to_currency", "date"], name: "index_exchange_rates_on_base_converted_date_unique", unique: true
t.index ["from_currency"], name: "index_exchange_rates_on_from_currency" t.index ["from_currency"], name: "index_exchange_rates_on_from_currency"
t.index ["to_currency"], name: "index_exchange_rates_on_to_currency" t.index ["to_currency"], name: "index_exchange_rates_on_to_currency"
@ -689,7 +683,6 @@ ActiveRecord::Schema[7.2].define(version: 2025_07_02_173231) do
t.datetime "created_at", null: false t.datetime "created_at", null: false
t.datetime "updated_at", null: false t.datetime "updated_at", null: false
t.index ["tag_id"], name: "index_taggings_on_tag_id" t.index ["tag_id"], name: "index_taggings_on_tag_id"
t.index ["taggable_id", "taggable_type"], name: "index_taggings_on_taggable_id_and_type"
t.index ["taggable_type", "taggable_id"], name: "index_taggings_on_taggable" t.index ["taggable_type", "taggable_id"], name: "index_taggings_on_taggable"
end end