Add support for mobile devices
This commit is contained in:
19
src/components/common/User.vue
Normal file
19
src/components/common/User.vue
Normal file
@@ -0,0 +1,19 @@
|
||||
<template>
|
||||
<span :style="{ color: color }">{{ user.name }}</span>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { computed } from 'vue'
|
||||
import Colors from '../../common/colors'
|
||||
|
||||
const props = defineProps(['user'])
|
||||
const user = props.user
|
||||
|
||||
const color = computed(() => { return user.color ?? Colors.Secondary })
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
span:hover {
|
||||
color: white !important;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user