QM: Wiedervorlage und Lesebestätigung, Platzhalter für Profilbilder (0.21.0)
Some checks failed
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 3m49s
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 3m54s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 5m27s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 5m29s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 6m38s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 6m40s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 6m7s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 6m13s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m24s
Some checks failed
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 3m49s
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 3m54s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 5m27s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 5m29s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 6m38s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 6m40s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 6m7s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 6m13s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m24s
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
8701b6d1b8
commit
4d855c8a74
213 changed files with 1729 additions and 515 deletions
|
|
@ -1,5 +1,6 @@
|
|||
<script setup>
|
||||
import { computed } from 'vue';
|
||||
import { usePage } from '@inertiajs/vue3';
|
||||
import { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar';
|
||||
import { colorFor } from '@/lib/colors';
|
||||
import { cn } from '@/lib/utils';
|
||||
|
|
@ -9,13 +10,15 @@ const props = defineProps({
|
|||
class: { type: [String, Array, Object], default: '' },
|
||||
});
|
||||
|
||||
// Ohne Foto: Initialen in einer festen Farbe je Person.
|
||||
// Ohne Foto: Platzhalter aus dem Erscheinungsbild, sonst Initialen in einer festen Farbe je Person.
|
||||
const color = computed(() => colorFor(props.person.id ?? props.person.name));
|
||||
const placeholder = computed(() => usePage().props.branding?.avatar_placeholder_url ?? null);
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<Avatar :class="cn('size-10', $props.class)">
|
||||
<AvatarImage v-if="person.avatar_url" :src="person.avatar_url" :alt="person.name" />
|
||||
<AvatarImage v-else-if="placeholder" :src="placeholder" :alt="person.name" class="bg-muted object-cover" />
|
||||
<AvatarFallback class="font-semibold" :class="color.soft">
|
||||
{{ person.initials }}
|
||||
</AvatarFallback>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue