Use black background on WorkerDateLabel
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
William Buezas 2024-04-12 08:22:17 -03:00
parent 7584857c87
commit 0006761201
2 changed files with 3 additions and 11 deletions

View File

@ -18,10 +18,9 @@ defineEmits(['update:selected']);
<template> <template>
<QChip <QChip
class="chip" class="text-white q-ma-none"
:selected="selected" :selected="selected"
:style="selected ? { backgroundColor: color } : null" :style="{ backgroundColor: selected ? color : 'black' }"
:text-color="selected ? 'white' : null"
@update:selected="$emit('update:selected', $event)" @update:selected="$emit('update:selected', $event)"
> >
<QAvatar <QAvatar
@ -32,9 +31,3 @@ defineEmits(['update:selected']);
<slot /> <slot />
</QChip> </QChip>
</template> </template>
<style scoped lang="scss">
.chip {
background-color: var(--vn-light-gray);
}
</style>

View File

@ -531,11 +531,10 @@ onMounted(async () => {
> >
<div class="column-title-container"> <div class="column-title-container">
<span class="text-primary">{{ t(col.label) }}</span> <span class="text-primary">{{ t(col.label) }}</span>
<span>{{ col.formattedDate }}</span> <span class="q-mb-xs">{{ col.formattedDate }}</span>
<WorkerDateLabel <WorkerDateLabel
v-if="col.dayData?.event" v-if="col.dayData?.event"
:color="col.dayData.event.color" :color="col.dayData.event.color"
selected
> >
<span> <span>
{{ col.dayData.event.name }} {{ col.dayData.event.name }}