<template>
  <section class="AiModel" :class="{small}">
    <img :src="model.avatar" alt=""/>
    <div class="fill mar-l8">
      <b v-text="model.name"/>
      <div class="desc" v-text="model.desc"/>
    </div>
  </section>
</template>

<script>
export default {
  name: "AiModel",
  props: {
    model: {default: () => ({})},
    small: Boolean
  },
}
</script>

<style lang="scss" scoped>
.AiModel {
  display: flex;
  align-items: center;
  line-height: 1.4;
  color: white;

  &.small {
    transform: scale(0.8);
  }

  & > img {
    border: 2px solid #fff;
    border-radius: 50%;
    padding: 4px;
    width: 45px;
    height: 45px;
  }

  b {
    font-size: 20px;
  }

  .desc {
    color: #999;
    font-size: 14px;
  }
}
</style>
