truncate table columns via css (#507)

- closes #506

Co-authored-by: robs <git@robs.social>
This commit is contained in:
Robert Kleinschuster
2024-12-13 17:57:32 +01:00
committed by GitHub
parent 5371b5d236
commit 01c9afa1c3
5 changed files with 12 additions and 12 deletions
@@ -9,9 +9,9 @@
<div class="flex flex-col gap-10 dark:text-white">
<%= if match?([_|_], @search_results) do %>
<.table rows={@search_results} table_class="text-black dark:text-white">
<:col :let={result} label="Title">
<:col :let={result} label="Title" class="truncate max-w-xs">
<.subtle_link href={~p"/sources/#{result.source_id}/media/#{result.id}"}>
{StringUtils.truncate(result.title, 35)}
{result.title}
</.subtle_link>
</:col>
<:col :let={result} label="Excerpt">