Files
vuefilemanager/resources/js/components/Others/Tables/DatatableCellImage.vue
2022-01-28 13:48:42 +01:00

86 lines
1.5 KiB
Vue

<template>
<div class="flex items-center flex-shrink-0 flex-grow-0">
<MemberAvatar
class="mr-3 flex-shrink-0"
:is-border="false"
:size="52"
:member="member"
/>
<div class="info">
<b class="name" v-if="title">{{ title }}</b>
<span class="description" v-if="description">{{ description }}</span>
</div>
</div>
</template>
<script>
import MemberAvatar from "../../FilesView/MemberAvatar";
export default {
name:'DatatableCellImage',
props: [
'member',
'title',
'description',
'image-size'
],
components: {
MemberAvatar,
}
}
</script>
<style lang="scss" scoped>
@import '../../../../sass/vuefilemanager/variables';
@import '../../../../sass/vuefilemanager/mixins';
.info {
.name, .description {
max-width: 150px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
display: block;
}
.name {
@include font-size(15);
line-height: 1;
color: $text;
}
.description {
color: $text-muted;
@include font-size(12);
}
}
.dark {
.cell-image-thumbnail {
.image {
img {
&.blurred {
display: none;
}
}
}
.info {
.name {
color: $dark_mode_text_primary;
}
.description {
color: $dark_mode_text_secondary;
}
}
}
}
</style>