From 3d115c63833ba763aa3f7fb857cd4ecb3502aba7 Mon Sep 17 00:00:00 2001 From: shibao Date: Fri, 4 Mar 2022 21:56:48 -0500 Subject: [PATCH] fixup! use table component for move ammo group component --- .../components/move_ammo_group_component.ex | 27 +++++++++---------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/lib/cannery_web/components/move_ammo_group_component.ex b/lib/cannery_web/components/move_ammo_group_component.ex index b3a49ba..c9fbc7b 100644 --- a/lib/cannery_web/components/move_ammo_group_component.ex +++ b/lib/cannery_web/components/move_ammo_group_component.ex @@ -67,12 +67,7 @@ defmodule CanneryWeb.Components.MoveAmmoGroupComponent do %{label: gettext("Container"), key: "name"}, %{label: gettext("Type"), key: "type"}, %{label: gettext("Location"), key: "location"}, - %{ - label: nil, - key: "actions", - sortable: false, - class: "px-4 py-2 space-x-4 flex justify-center items-center" - } + %{label: nil, key: "actions", sortable: false} ] rows = containers |> get_rows_for_containers(assigns, columns) @@ -119,15 +114,17 @@ defmodule CanneryWeb.Components.MoveAmmoGroupComponent do case key do "actions" -> ~H""" - +
+ +
""" key ->