-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
484c523
commit c459a19
Showing
3 changed files
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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| %> | ||
<div class="flex gap-2 items-center items-stretch"> | ||
<%= render "messages/textarea" %> | ||
<%= form.submit "Send", class: "p-4 rounded-lg bg-slate-500 text-white" %> | ||
</div> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
<div id="message_content"> | ||
<textarea name="message[content]" id="message_content" class="mb-2" placeholder="your message..."></textarea> | ||
</div> | ||
<textarea name="message[content]" id="message_content" class="rounded-lg" placeholder="your message..."></textarea> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters