<template>
  <div class="chat-time">
    <span class="chat-time__info">
      {{ (info.addTime * 1000) | formatDate }}
    </span>
  </div>
</template>

<script>
export default {
  name: 'vertical-chat-time',
  props: {
    info: {}
  }
};
</script>

<style lang="less" scoped>
.chat-time {
  margin-bottom: 0.03rem;
  font-size: 0.12rem;
  color: #858587;
  text-align: center;
  margin-bottom: 10px;
  transform: scale(0.85);
  &__info {
    display: inline-block;
    margin: auto;
    max-width: 90%;
    padding: 0.05rem 0.1rem;
    border-radius: 0.05rem;
    font-size: 0.12rem;
    color: #ddd;
    background: rgba(0, 0, 0, 0.15);
    text-align: center;
  }
}
</style>
