Skip to content

Commit f1eee1b

Browse files
committed
style: refine textarea component layout
- Updated the label to only render if present, improving conditional rendering. - Adjusted CSS classes for the label and help text for better spacing and visual consistency.
1 parent b2d7718 commit f1eee1b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/algora_web/components/core_components.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -807,8 +807,8 @@ defmodule AlgoraWeb.CoreComponents do
807807
def input(%{type: "textarea"} = assigns) do
808808
~H"""
809809
<div>
810-
<.label for={@id}>{@label}</.label>
811-
<p :if={@helptext} class="mb-2 text-sm text-muted-foreground">{@helptext}</p>
810+
<.label :if={@label} for={@id} class="mb-2">{@label}</.label>
811+
<p :if={@helptext} class="-mt-2 mb-2 text-sm text-muted-foreground">{@helptext}</p>
812812
<textarea
813813
id={@id || @name}
814814
name={@name}

0 commit comments

Comments
 (0)