2020-10-30 15:53:10 +00:00
|
|
|
<template>
|
|
|
|
<div class="messageContainer">
|
|
|
|
<div class="message">
|
|
|
|
{{msg}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
name: "messageReceive",
|
|
|
|
props: {
|
|
|
|
msg: String
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
.messageContainer{
|
|
|
|
position: relative;
|
|
|
|
margin-top: 0.5rem;
|
2020-10-31 09:42:59 +00:00
|
|
|
width: calc(100% - 2rem);
|
|
|
|
left: 1rem;
|
2020-10-30 15:53:10 +00:00
|
|
|
}
|
|
|
|
.message{
|
|
|
|
position: relative;
|
|
|
|
width: max-content;
|
|
|
|
min-width: 5rem;
|
|
|
|
max-width: calc(100% - 3rem);
|
|
|
|
padding: 1rem;
|
|
|
|
left: 0rem;
|
|
|
|
background-color: #42a7b9;
|
|
|
|
border-radius: 1rem 1rem 1rem 0rem;
|
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
</style>
|