fix: person card status & profile banner
This commit is contained in:
parent
68cc429b2e
commit
ba66eaf959
2 changed files with 27 additions and 6 deletions
|
|
@ -144,7 +144,7 @@ const showOverlay = ref(false);
|
||||||
>
|
>
|
||||||
<div class="column">
|
<div class="column">
|
||||||
<span class="text-bold q-pt-xs text-body1">{{ title }}</span>
|
<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>
|
</div>
|
||||||
|
|
||||||
<!-- icon -->
|
<!-- icon -->
|
||||||
|
|
@ -158,6 +158,7 @@ const showOverlay = ref(false);
|
||||||
dense
|
dense
|
||||||
size="md"
|
size="md"
|
||||||
padding="none"
|
padding="none"
|
||||||
|
color="positive"
|
||||||
:model-value="toggleStatus !== 'INACTIVE'"
|
:model-value="toggleStatus !== 'INACTIVE'"
|
||||||
@click="$emit('update:toggleStatus', toggleStatus)"
|
@click="$emit('update:toggleStatus', toggleStatus)"
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
|
|
@ -169,7 +169,7 @@ defineEmits<{
|
||||||
<!-- profile -->
|
<!-- profile -->
|
||||||
<AppCircle
|
<AppCircle
|
||||||
bordered
|
bordered
|
||||||
class="avatar"
|
class="avatar relative-position"
|
||||||
style="border: 2px solid var(--border-color); overflow: visible"
|
style="border: 2px solid var(--border-color); overflow: visible"
|
||||||
@click="$emit('editProfile')"
|
@click="$emit('editProfile')"
|
||||||
>
|
>
|
||||||
|
|
@ -191,7 +191,27 @@ defineEmits<{
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</q-img>
|
</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>
|
</AppCircle>
|
||||||
|
|
||||||
<!-- name symbol -->
|
<!-- name symbol -->
|
||||||
|
|
@ -330,7 +350,7 @@ defineEmits<{
|
||||||
|
|
||||||
.avatar {
|
.avatar {
|
||||||
block-size: 5rem;
|
block-size: 5rem;
|
||||||
transform: rotate(45deg);
|
/* transform: rotate(45deg); */
|
||||||
|
|
||||||
& .avatar__status {
|
& .avatar__status {
|
||||||
content: ' ';
|
content: ' ';
|
||||||
|
|
@ -346,9 +366,9 @@ defineEmits<{
|
||||||
background-color: hsla(var(--positive-bg) / 1);
|
background-color: hsla(var(--positive-bg) / 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
& :deep(.q-img) {
|
/* & :deep(.q-img) {
|
||||||
transform: rotate(-45deg);
|
transform: rotate(-45deg);
|
||||||
}
|
} */
|
||||||
}
|
}
|
||||||
|
|
||||||
.edit-profile {
|
.edit-profile {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue