Vue JS Chat App UI
Vue JS Chat App UI
Good day everyone!
I am developing a Chat App using Laravel + Laravel Echo + Pusher and Vue JS
all the functionality are fine but I have a problem with the UI.
If you have a new chat, your message will display on the right side and if someone sends a chat on the chatbox, his/her message will display to the left.
I already made the UI
whenever I make a message, all messages will display on the right, if someone sends a chat, all messages will display on the left. Does anyone know how to make my messages display on the right and the other sender messages will display on left? Thanks!
</li>
</ul>
</div>
</li>
</ul>
</div>
</div>
</div>
@Phil i am so sorry, i forgot to write my question. :)
– Imperatura
2 days ago
Why don't you try adding the css property float:right
for the mesender
div. So that all your messages will be pushed to the right and add float:left
for the other div to move them to the left.
– Arunachalam E
2 days ago
float:right
mesender
float:left
thank you so much for your reply. it's working now, CSS is all fine.. i just add an indicator for who sends the message.
– Imperatura
2 days ago
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
Do you have a question?
– Phil
2 days ago