Invoice wrapper

This commit is contained in:
Peter Papp
2021-04-22 08:29:00 +02:00
parent 4b0e4da013
commit 5b70066900
8 changed files with 241 additions and 28 deletions

View File

@@ -1,6 +1,9 @@
<template>
<div class="wrapper">
<div class="icon-wrapper">
<div class="wrapper" :class="{'center': avatar}">
<div v-if="avatar" class="avatar-wrapper">
<img :src="avatar" alt="">
</div>
<div v-if="icon" class="icon-wrapper">
<CheckSquareIcon v-if="icon === 'check-square'" class="icon text-theme" size="21" />
<image-icon v-if="icon === 'image'" class="icon text-theme" size="21" />
<video-icon v-if="icon === 'video'" class="icon text-theme" size="21" />
@@ -31,6 +34,7 @@ export default {
name: 'TitlePreview',
props: [
'subtitle',
'avatar',
'title',
'icon',
],
@@ -54,6 +58,10 @@ export default {
display: flex;
align-items: flex-start;
&.center {
align-items: center;
}
.text {
padding-left: 10px;
width: 100%;
@@ -75,6 +83,16 @@ export default {
}
}
.avatar-wrapper {
line-height: 0;
img {
border-radius: 9px;
width: 52px;
height: 52px;
}
}
.icon-wrapper {
polyline, path, rect, circle, polyline, line {