diff --git a/app/views/messages/_form.html.erb b/app/views/messages/_form.html.erb index 6cb8e39..f74fd1e 100644 --- a/app/views/messages/_form.html.erb +++ b/app/views/messages/_form.html.erb @@ -1,4 +1,6 @@ -<%= form_with(model: [@room, @message], data: { turbo_stream: true }) do |form| %> - <%= render "messages/textarea" %> - <%= form.submit "Send", class: "w-full rounded-lg bg-slate-500 text-white"%> + <%= form_with(model: [@room, @message], data: { turbo_stream: true }) do |form| %> +
+ <%= render "messages/textarea" %> + <%= form.submit "Send", class: "p-4 rounded-lg bg-slate-500 text-white" %> +
<% end %> \ No newline at end of file diff --git a/app/views/messages/_textarea.html.erb b/app/views/messages/_textarea.html.erb index ea94b9b..cce1918 100644 --- a/app/views/messages/_textarea.html.erb +++ b/app/views/messages/_textarea.html.erb @@ -1,3 +1 @@ -
- -
\ No newline at end of file + \ No newline at end of file diff --git a/app/views/rooms/show.html.erb b/app/views/rooms/show.html.erb index cd5e165..e03ae18 100644 --- a/app/views/rooms/show.html.erb +++ b/app/views/rooms/show.html.erb @@ -2,7 +2,7 @@

<%= @room.name %>

-
+
<%= render @messages%> <%= turbo_stream_from @room %>