From cb151fdaa2fc3f746f4d8e9df16999b385125a5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonatan=20K=C5=82osko?= Date: Wed, 30 Jun 2021 22:07:57 +0200 Subject: [PATCH] Improve Bin sizing --- lib/livebook_web/live/session_live/bin_component.ex | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/livebook_web/live/session_live/bin_component.ex b/lib/livebook_web/live/session_live/bin_component.ex index 7fa7b47d5..94bcfcda7 100644 --- a/lib/livebook_web/live/session_live/bin_component.ex +++ b/lib/livebook_web/live/session_live/bin_component.ex @@ -59,12 +59,13 @@ defmodule LivebookWeb.SessionLive.BinComponent do spellcheck="false" autofocus /> -
+
<%= for {%{cell: cell} = entry, index} <- Enum.take(@matching_entries, @limit) |> Enum.with_index(1) do %> -
+

- #<%= index %> <%= Cell.type(cell) |> Atom.to_string() |> String.capitalize() %> cell + <%= index %>. + <%= Cell.type(cell) |> Atom.to_string() |> String.capitalize() %> cell deleted from “<%= entry.section_name %>” section <%= entry.deleted_at |> DateTime.to_naive() |> Livebook.Utils.Time.time_ago_in_words() %> ago