mime-chat/src/components/taInput/textDetails/text.vue
2021-03-06 15:59:06 -06:00

62 lines
829 B
Vue

<template>
<div class="inputBox">
<div class="inputBubble" v-show="input.length > 0">
<p>{{ input }}</p>
</div>
</div>
</template>
<script lang="ts">
import { defineComponent } from "vue";
export default defineComponent({
name: "TextInput",
props: {
input: String,
},
});
</script>
<style lang="scss" scoped>
.inputBox {
position: absolute;
display: flex;
justify-content: center;
align-items: center;
// bottom: 0;
// z-index: 1;
}
.inputBubble {
max-width: 180px;
min-height: 32px;
display: table;
justify-items: center;
border-radius: 10px;
background-color: #B9B9B9;
font-size: 14px;
p {
max-width: 150px;
overflow-wrap: break-word;
padding: 7px 10px 5px 10px;
margin: 0;
}
margin-bottom: 20px;
z-index: 1;
}
</style>