fix: person card status & profile banner

This commit is contained in:
puriphatt 2024-08-07 10:10:09 +00:00
parent 68cc429b2e
commit ba66eaf959
2 changed files with 27 additions and 6 deletions

View file

@ -144,7 +144,7 @@ const showOverlay = ref(false);
>
<div class="column">
<span class="text-bold q-pt-xs text-body1">{{ title }}</span>
<span class="app-text-muted">{{ caption }}</span>
<span v-if="title" class="app-text-muted">{{ caption }}</span>
</div>
<!-- icon -->
@ -158,6 +158,7 @@ const showOverlay = ref(false);
dense
size="md"
padding="none"
color="positive"
:model-value="toggleStatus !== 'INACTIVE'"
@click="$emit('update:toggleStatus', toggleStatus)"
/>

View file

@ -169,7 +169,7 @@ defineEmits<{
<!-- profile -->
<AppCircle
bordered
class="avatar"
class="avatar relative-position"
style="border: 2px solid var(--border-color); overflow: visible"
@click="$emit('editProfile')"
>
@ -191,7 +191,27 @@ defineEmits<{
</div>
</template>
</q-img>
<div class="avatar__status"></div>
<q-badge
class="absolute-bottom-right"
style="
border-radius: 50%;
width: 16px;
height: 16px;
z-index: 2;
background: var(--border-color);
"
>
<q-badge
class="absolute-center"
style="
border-radius: 7px;
width: 14px;
height: 14px;
background: hsl(var(--positive-bg));
"
></q-badge>
<!-- :style="`background: hsl(var(${active ? '--positive-bg' : '--text-mute'}))`" -->
</q-badge>
</AppCircle>
<!-- name symbol -->
@ -330,7 +350,7 @@ defineEmits<{
.avatar {
block-size: 5rem;
transform: rotate(45deg);
/* transform: rotate(45deg); */
& .avatar__status {
content: ' ';
@ -346,9 +366,9 @@ defineEmits<{
background-color: hsla(var(--positive-bg) / 1);
}
& :deep(.q-img) {
/* & :deep(.q-img) {
transform: rotate(-45deg);
}
} */
}
.edit-profile {