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
|
|
@ -18,6 +18,10 @@ class InitialsAvatarProvider implements AvatarProvider
|
|||
|
||||
public function get(Model $record): string
|
||||
{
|
||||
if ($placeholder = $this->branding->url($this->branding->active()['avatar_placeholder'] ?? null)) {
|
||||
return $placeholder;
|
||||
}
|
||||
|
||||
$initials = $record instanceof User
|
||||
? $record->initials
|
||||
: mb_strtoupper(mb_substr(Filament::getNameForDefaultAvatar($record), 0, 1));
|
||||
|
|
|
|||
|
|
@ -22,6 +22,8 @@ class AppearanceProfile extends AppearancePage
|
|||
protected function fields(): array
|
||||
{
|
||||
return [
|
||||
static::image('avatar_placeholder', 'Platzhalter für Profilbilder', 'Erscheint überall dort, wo eine Person kein eigenes Profilbild hat – z. B. ein Signet oder eine Silhouette. Quadratisch, mindestens 256 × 256 Pixel. Leer = Initialen in einer Farbe je Person.')
|
||||
->image()->acceptedFileTypes(['image/png', 'image/jpeg', 'image/webp', 'image/svg+xml'])->columnSpanFull(),
|
||||
static::image('profile_cover', 'Standard-Titelbild', 'Erscheint oben im Profil und in der Begrüßung auf der Startseite, wenn eine Person kein eigenes Titelbild hochgeladen hat. Querformat, mindestens 1600 Pixel breit. Leer = Fläche in der Markenfarbe.')
|
||||
->image()->acceptedFileTypes(['image/jpeg', 'image/png', 'image/webp'])->maxSize(8192)->columnSpanFull(),
|
||||
Radio::make('profile_cover_overlay')->label('Farbfläche über dem Titelbild')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue