noahsettersten commited on
Commit
720aae3
1 Parent(s): 62f95d4

chore: Ensure `code_select` expands fully, add story

Browse files
lib/medical_transcription_web/components/code_select.ex CHANGED
@@ -33,7 +33,7 @@ defmodule MedicalTranscriptionWeb.Components.CodeSelect do
33
  @impl Phoenix.LiveComponent
34
  def render(assigns) do
35
  ~H"""
36
- <div>
37
  <%= if is_nil(@selected_code) do %>
38
  <.form for={@form} phx-change="suggest-code" phx-target={@myself}>
39
  <.input
 
33
  @impl Phoenix.LiveComponent
34
  def render(assigns) do
35
  ~H"""
36
+ <div class="w-full">
37
  <%= if is_nil(@selected_code) do %>
38
  <.form for={@form} phx-change="suggest-code" phx-target={@myself}>
39
  <.input
storybook/components/code_select.story.exs ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ defmodule MedicalTranscriptionWeb.Storybook.CodeSelect do
2
+ use PhoenixStorybook.Story, :live_component
3
+
4
+ def component, do: MedicalTranscriptionWeb.Components.CodeSelect
5
+
6
+ def variations do
7
+ [
8
+ %Variation{
9
+ id: :default,
10
+ attributes: %{
11
+ id: "transcription-row-1-code-select",
12
+ text:
13
+ "This 55-year-old man with known coronary artery disease comes for a follow-up visit today. "
14
+ }
15
+ }
16
+ ]
17
+ end
18
+ end