I'm currently developing a private chatroom feature on my Laravel app. Let me walk you through how it functions - there's a button that triggers a bootstrap modal, and inside that modal, I've embedded a Vue component. Everything seems to be functioning properly, however, I'm facing an issue. How can I display the messages I sent on the left side and the replies on the right? Additionally, I'm encountering problems with some text overlapping the wrapper.
Modal
<div id="messagemodal">
<userprofilemessagemodal-component
:chatroom_id="{{ $chatroom->id }}"
:user_id="{{ Auth::user()->id }}"
:receiver="{{ $data->id }}"
>
</userprofilemessagemodal-component>
</div>
Vue Component
<div class="container-fluid p-3 roombody">
<div v-for="roommsg in roommsgs" v-bind:key="roommsg.id">
<div class="container">
<p id="roommsg" class="rounded-top rounded-bottom p-1 text-white">
{{ roommsg.message }}
</p>
</div>
</div>
</div>
Fetched Array Object Structure
id: '',
message: '',
chatroom_id: '',
user_id: '',
receiver_id: '',
created_at: '',
updated_at: '',
Is it possible to achieve all this through styling alone? Appreciate your help! PS. I haven't included all the code snippets, just the ones I believe are essential for understanding. Let me know if you need more clarification :)