add missing margins to cards

This commit is contained in:
shibao 2022-02-15 18:13:33 -05:00
parent e4ef22184e
commit 95a08d6088
3 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@ defmodule CanneryWeb.Components.AmmoGroupCard do
~H""" ~H"""
<div <div
id={"ammo_group-#{@ammo_group.id}"} id={"ammo_group-#{@ammo_group.id}"}
class="px-8 py-4 flex flex-col justify-center items-center class="mx-4 my-2 px-8 py-4 flex flex-col justify-center items-center
border border-gray-400 rounded-lg shadow-lg hover:shadow-md" border border-gray-400 rounded-lg shadow-lg hover:shadow-md"
> >
<%= live_redirect to: Routes.ammo_group_show_path(Endpoint, :show, @ammo_group), <%= live_redirect to: Routes.ammo_group_show_path(Endpoint, :show, @ammo_group),

View File

@ -10,7 +10,7 @@ defmodule CanneryWeb.Components.ContainerCard do
~H""" ~H"""
<div <div
id={"container-#{@container.id}"} id={"container-#{@container.id}"}
class="px-8 py-4 flex flex-col justify-center items-center class="mx-4 my-2 px-8 py-4 flex flex-col justify-center items-center
border border-gray-400 rounded-lg shadow-lg hover:shadow-md" border border-gray-400 rounded-lg shadow-lg hover:shadow-md"
> >
<div class="mb-4 flex flex-col justify-center items-center"> <div class="mb-4 flex flex-col justify-center items-center">

View File

@ -8,7 +8,7 @@ defmodule CanneryWeb.Components.InviteCard do
def invite_card(assigns) do def invite_card(assigns) do
~H""" ~H"""
<div class="px-8 py-4 flex flex-col justify-center items-center space-y-4 <div class="mx-4 my-2 px-8 py-4 flex flex-col justify-center items-center space-y-4
border border-gray-400 rounded-lg shadow-lg hover:shadow-md"> border border-gray-400 rounded-lg shadow-lg hover:shadow-md">
<h1 class="title text-xl"> <h1 class="title text-xl">
<%= @invite.name %> <%= @invite.name %>