mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Chat
This commit is contained in:
41
frontend/components/chat/Name.vue
Normal file
41
frontend/components/chat/Name.vue
Normal file
@@ -0,0 +1,41 @@
|
||||
<template>
|
||||
<div class="name">
|
||||
<div class="icon-container" v-if="icon != undefined">
|
||||
<img :src="icon" />
|
||||
</div>
|
||||
<div class="name-container">{{ name }}</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: {
|
||||
name: {
|
||||
type: String,
|
||||
required: true
|
||||
},
|
||||
icon: {
|
||||
type: String,
|
||||
required: false
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.name {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
img {
|
||||
height: 10px;
|
||||
width: 10px;
|
||||
padding: 0 5px;
|
||||
}
|
||||
|
||||
.name-container {
|
||||
padding: 0 5px 0 5px;
|
||||
color: orange;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user