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







  • {{message.user.firstname}} {{message.user.lastname}} 10:12 AM, Today

    {{message.chat}}

    </li>
    </ul>
    </div>




    • {{message.user.firstname}} {{message.user.lastname}} 10:12 AM, Today

      {{message.chat}}

      </li>
      </ul>
      </div>
      </div>
      </div>



      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!





      Do you have a question?
      – Phil
      2 days ago





      @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.

Comments

Popular posts from this blog

paramiko-expect timeout is happening after executing the command

how to run turtle graphics in Colaboratory

Export result set on Dbeaver to CSV