Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

Chat.vue 1.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. <template>
  2. <div class="chat">
  3. <div class="chat--nav">
  4. <span>&lt; Back</span>
  5. <h3>Company Name</h3>
  6. <span>...</span>
  7. </div>
  8. <div class="chat--history">
  9. <span>Hey there... </span>
  10. </div>
  11. <div class="message">
  12. <!-- <h2>Messages</h2> -->
  13. <span>Type messages here...</span>
  14. </div>
  15. </div>
  16. </template>
  17. <script>
  18. import icon from '@/components/icon'
  19. import card from '@/components/card'
  20. import { defineComponent } from 'vue'
  21. import { NButton } from 'naive-ui'
  22. export default defineComponent({
  23. components: {
  24. NButton,
  25. card,
  26. icon,
  27. },
  28. })
  29. </script>
  30. <style lang="postcss">
  31. h3
  32. margin: 0
  33. .chat
  34. width: 100%
  35. display: flex
  36. flex-flow: column
  37. /* padding: 20px */
  38. text-align: left
  39. height: 90%
  40. .chat--nav
  41. display: flex
  42. flex-direction: row
  43. justify-content: space-between
  44. border-bottom: 1px solid rgba(0,0,0,0.5)
  45. width: 100%
  46. & > *
  47. padding: 10px
  48. .chat--history
  49. padding: 20px
  50. flex: 1
  51. overflow: auto
  52. .row
  53. display: flex
  54. flex-direction: row
  55. /* width: 100vw */
  56. overflow:scroll
  57. .message
  58. position: relative
  59. bottom: 0
  60. min-height: 60px
  61. width: 100%
  62. display: block
  63. text-align: left
  64. /* margin-bottom: 10px */
  65. background-color: transparent
  66. border: 1px solid #ccc
  67. padding: 12px
  68. .n-card__content
  69. padding-top: 0
  70. .matched
  71. display: flex
  72. flex-direction: row
  73. background-color: rgba(0,0,0,0.0)
  74. margin-bottom: 12px
  75. border-bottom: 1px solid rgba(150,150,150,0.25)
  76. .icon
  77. /* display: inline-block */
  78. padding: 8px 12px
  79. margin: -1px
  80. /* flex-grow: 0 */
  81. border-bottom: 1px solid rgba(250,250,250,0.95)
  82. .active
  83. /* background-color: rgba(250,50,50,0.3) */
  84. </style>