Skip to content

Commit

Permalink
Update trade row layout to truncate long text
Browse files Browse the repository at this point in the history
  • Loading branch information
Shpigford committed Nov 21, 2024
1 parent 4ea9c1f commit 2178eea
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
<div class="flex items-center gap-2">
<%= link_to "/tools/inside-trading-tracker/#{trade[:ticker]}", class: "flex items-center gap-2 hover:text-blue-600", data: { turbo_frame: "_top" } do %>
<img src="https://logo.synthfinance.com/ticker/<%= trade[:ticker] %>" alt="<%= trade[:ticker] %> logo" class="w-6 h-6 rounded">
<div>
<%= trade[:full_name].titleize %>
<div class="max-w-[250px]">
<div class="truncate"><%= trade[:full_name].titleize %></div>
<% if @tool.symbol.blank? %>
<div class="text-xs text-gray-500"><%= trade[:company] %></div>
<div class="text-xs text-gray-500 truncate"><%= trade[:company] %></div>
<% end %>
</div>
<% end %>
Expand Down

0 comments on commit 2178eea

Please sign in to comment.