Fix title overflow issue in chats (#331)

* fix: Truncate title in chats view if too long

* Add hover

---------

Co-authored-by: Juan José Mata <juanjo.mata@gmail.com>
This commit is contained in:
Alessio Cappa
2025-11-15 10:17:25 +01:00
committed by GitHub
parent 3c8ba643a0
commit 00086bdca0

View File

@@ -1,8 +1,8 @@
<%# locals: (chat:) %>
<%= tag.div class: "flex items-center justify-between px-4 py-3 bg-container shadow-border-xs rounded-lg" do %>
<div class="grow">
<%= turbo_frame_tag dom_id(chat, :title) do %>
<div class="grow truncate">
<%= turbo_frame_tag dom_id(chat, :title), title: chat.title do %>
<%= render "chats/chat_title", chat: chat, ctx: "list" %>
<% end %>