From e0ddefe1d7c474370a0a81771c7a75b86a2a3fb8 Mon Sep 17 00:00:00 2001 From: shibao Date: Mon, 28 Mar 2022 23:56:45 -0400 Subject: [PATCH] fix tag and container overflow --- lib/cannery_web/components/container_card.ex | 4 ++-- lib/cannery_web/components/tag_card.ex | 2 +- lib/cannery_web/live/container_live/index.html.heex | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/cannery_web/components/container_card.ex b/lib/cannery_web/components/container_card.ex index ba6cec2..fc298e9 100644 --- a/lib/cannery_web/components/container_card.ex +++ b/lib/cannery_web/components/container_card.ex @@ -14,11 +14,11 @@ defmodule CanneryWeb.Components.ContainerCard do ~H"""
-
+
<%= live_redirect to: Routes.container_show_path(Endpoint, :show, @container), class: "link" do %>

diff --git a/lib/cannery_web/components/tag_card.ex b/lib/cannery_web/components/tag_card.ex index e5a18a3..3cfd38d 100644 --- a/lib/cannery_web/components/tag_card.ex +++ b/lib/cannery_web/components/tag_card.ex @@ -22,7 +22,7 @@ defmodule CanneryWeb.Components.TagCard do def simple_tag_card(assigns) do ~H"""

<%= @tag.name %> diff --git a/lib/cannery_web/live/container_live/index.html.heex b/lib/cannery_web/live/container_live/index.html.heex index 6cfe1f6..fafaee8 100644 --- a/lib/cannery_web/live/container_live/index.html.heex +++ b/lib/cannery_web/live/container_live/index.html.heex @@ -20,7 +20,7 @@ ) %> <% end %> -
+
<%= for container <- @containers do %> <.container_card container={container}> <:tag_actions>