<li>
  <%= link_to result.source, class: "search__result", data: { turbo_frame: "_top", action: "bar#reset" } do %>
      <div>
        <h3 class="search__title txt--medium margin-none">
          # <%= result.card_id %> <%= result.card_title %>
        </h3>

        <% if result.card_description.present? %>
          <div class="search__excerpt">
            <%= result.card_description %>
          </div>
        <% else
             if result.comment_body.present? %>
            <div class="search__excerpt search__excerpt--comment">
              <%= avatar_preview_tag result.creator %>
              <div>
                <%= result.comment_body %>
              </div>
            </div>
          <% end %>
        <% end %>
      </div>
      <div class="overflow-ellipsis translucent txt-ink"><%= result.collection_name %></div>
  <% end %>
</li>
