fix some bug
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
<template>
|
||||
<div class="customer-profile-card">
|
||||
<t-button v-if="photoURL" variant="text" class="avatar-trigger" @click="openPhotoViewer">
|
||||
<button v-if="photoURL" type="button" class="avatar-trigger" @click.stop="openPhotoViewer">
|
||||
<t-image :src="photoURL" :alt="customerName" fit="cover" class="avatar" />
|
||||
</t-button>
|
||||
</button>
|
||||
<div v-else class="avatar fallback" v-text="avatarText" />
|
||||
<div class="content">
|
||||
<div class="header">
|
||||
@@ -66,6 +66,7 @@ function openPhotoViewer(): void {
|
||||
width: 4rem;
|
||||
height: 4rem;
|
||||
display: block;
|
||||
cursor: pointer;
|
||||
background: transparent;
|
||||
border-radius: .875rem;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user