<script setup>
defineProps({
  tall: {
    type: Boolean,
    default: false,
  },
  noBg: {
    type: Boolean,
    default: false,
  },
});
</script>

<template>
  <view class="container">
    <image src="../static/shooter.png" mode="widthFix" />
    <view>
      <image
        v-if="!noBg"
        :src="
          tall ? '../static/long-bubble-tall.png' : '../static/long-bubble.png'
        "
        :style="{ top: tall ? '-6%' : '-12%' }"
        mode="widthFix"
      />
      <slot />
    </view>
  </view>
</template>

<style scoped>
.container {
  display: flex;
  align-items: center;
  padding: 0 15px;
  width: 100%;
}
.container > image {
  width: 20%;
}
.container > view {
  position: relative;
  width: 75%;
  padding-right: 25px;
  min-height: 55px;
  display: flex;
  flex-direction: column;
}
.container > view > image {
  position: absolute;
  left: -7%;
  width: 98%;
}
.container > view {
  color: #fff;
  font-size: 14px;
}
</style>
