From 0cec3cd6cb554f82cebba5794300a54c7e850daa Mon Sep 17 00:00:00 2001 From: Chris McCord Date: Thu, 20 Oct 2022 15:14:01 -0400 Subject: [PATCH] Simplify input padding --- installer/templates/phx_web/components/core_components.ex | 4 ++-- priv/templates/phx.gen.live/core_components.ex | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/installer/templates/phx_web/components/core_components.ex b/installer/templates/phx_web/components/core_components.ex index 753a165acb..d0408ad629 100644 --- a/installer/templates/phx_web/components/core_components.ex +++ b/installer/templates/phx_web/components/core_components.ex @@ -308,7 +308,7 @@ defmodule <%= @web_namespace %>.CoreComponents do name={@name} class={[ input_border(@errors), - "mt-2 block min-h-[6rem] w-full rounded-lg border-zinc-300 py-[calc(theme(spacing.2)-1px)] px-[calc(theme(spacing.3)-1px)]", + "mt-2 block min-h-[6rem] w-full rounded-lg border-zinc-300 py-[7px] px-[11px]", "text-zinc-900 focus:border-zinc-400 focus:outline-none focus:ring-4 focus:ring-zinc-800/5 sm:text-sm sm:leading-6", "phx-no-feedback:border-zinc-300 phx-no-feedback:focus:border-zinc-400 phx-no-feedback:focus:ring-zinc-800/5" ]} @@ -330,7 +330,7 @@ defmodule <%= @web_namespace %>.CoreComponents do value={@value} class={[ input_border(@errors), - "mt-2 block w-full rounded-lg border-zinc-300 py-[calc(theme(spacing.2)-1px)] px-[calc(theme(spacing.3)-1px)]", + "mt-2 block w-full rounded-lg border-zinc-300 py-[7px] px-[11px]", "text-zinc-900 focus:outline-none focus:ring-4 sm:text-sm sm:leading-6", "phx-no-feedback:border-zinc-300 phx-no-feedback:focus:border-zinc-400 phx-no-feedback:focus:ring-zinc-800/5" ]} diff --git a/priv/templates/phx.gen.live/core_components.ex b/priv/templates/phx.gen.live/core_components.ex index 753a165acb..d0408ad629 100644 --- a/priv/templates/phx.gen.live/core_components.ex +++ b/priv/templates/phx.gen.live/core_components.ex @@ -308,7 +308,7 @@ defmodule <%= @web_namespace %>.CoreComponents do name={@name} class={[ input_border(@errors), - "mt-2 block min-h-[6rem] w-full rounded-lg border-zinc-300 py-[calc(theme(spacing.2)-1px)] px-[calc(theme(spacing.3)-1px)]", + "mt-2 block min-h-[6rem] w-full rounded-lg border-zinc-300 py-[7px] px-[11px]", "text-zinc-900 focus:border-zinc-400 focus:outline-none focus:ring-4 focus:ring-zinc-800/5 sm:text-sm sm:leading-6", "phx-no-feedback:border-zinc-300 phx-no-feedback:focus:border-zinc-400 phx-no-feedback:focus:ring-zinc-800/5" ]} @@ -330,7 +330,7 @@ defmodule <%= @web_namespace %>.CoreComponents do value={@value} class={[ input_border(@errors), - "mt-2 block w-full rounded-lg border-zinc-300 py-[calc(theme(spacing.2)-1px)] px-[calc(theme(spacing.3)-1px)]", + "mt-2 block w-full rounded-lg border-zinc-300 py-[7px] px-[11px]", "text-zinc-900 focus:outline-none focus:ring-4 sm:text-sm sm:leading-6", "phx-no-feedback:border-zinc-300 phx-no-feedback:focus:border-zinc-400 phx-no-feedback:focus:ring-zinc-800/5" ]}