Skip to content

armgit / sure

Public Imported from GitHub
0

The personal finance app for everyone (by everyone)

Ruby

fix: correct some dark mode ui issues (#52)

Vincent Teo66a87c852c7c
diff --git a/app/views/holdings/index.html.erb b/app/views/holdings/index.html.erb
index d200e54f94..704284468c 100644
--- a/app/views/holdings/index.html.erb
+++ b/app/views/holdings/index.html.erb
@@ -5,7 +5,7 @@
<%= link_to new_trade_path(account_id: @account.id),
id: dom_id(@account, "new_trade"),
data: { turbo_frame: :modal },
- class: "flex gap-1 font-medium items-center bg-gray-50 text-primary p-2 rounded-lg" do %>
+ class: "flex gap-1 font-medium items-center bg-gray-50 theme-dark:bg-gray-700 hover:bg-gray-100 theme-dark:hover:bg-gray-600 text-primary p-2 rounded-lg" do %>
<span class="text-primary">
<%= icon("plus", color: "current") %>
</span>
diff --git a/app/views/holdings/show.html.erb b/app/views/holdings/show.html.erb
index 5088ef1001..d53e5c52ba 100644
--- a/app/views/holdings/show.html.erb
+++ b/app/views/holdings/show.html.erb
@@ -61,7 +61,7 @@
<div>
<p class="text-secondary text-xs uppercase"><%= l(trade_entry.date, format: :long) %></p>
- <p><%= t(
+ <p class="text-primary"><%= t(
".trade_history_entry",
qty: trade_entry.trade.qty,
security: trade_entry.trade.security.ticker,