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

This commit is contained in:
Vincent Teo
2025-08-01 15:49:08 +10:00
committed by GitHub
parent efcd356abf
commit 66a87c852c
2 changed files with 2 additions and 2 deletions

View File

@@ -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>

View File

@@ -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,