feat: 增加自定义头像上传、自动压缩与自动清理功能,统一全站头像路径读取逻辑
This commit is contained in:
@@ -110,7 +110,7 @@
|
||||
@foreach ($position->activeUserPositions as $up)
|
||||
<div
|
||||
class="flex items-center gap-2 px-3 py-1.5 bg-gray-50 border border-gray-100 rounded-xl">
|
||||
<img src="/images/headface/{{ strtolower($up->user?->headface ?? '1.gif') }}"
|
||||
<img src="{{ $up->user?->headface_url ?? '/images/headface/1.gif' }}"
|
||||
class="w-7 h-7 rounded-full border border-purple-100 object-cover bg-white"
|
||||
onerror="this.src='/images/headface/1.gif'">
|
||||
<div>
|
||||
@@ -210,7 +210,7 @@
|
||||
|
||||
{{-- 成员 --}}
|
||||
<div class="col-span-4 flex items-center gap-3">
|
||||
<img src="/images/headface/{{ strtolower($row->user?->headface ?? '1.gif') }}"
|
||||
<img src="{{ $row->user?->headface_url ?? '/images/headface/1.gif' }}"
|
||||
class="w-9 h-9 rounded-full border-2 border-purple-100 object-cover bg-white"
|
||||
onerror="this.src='/images/headface/1.gif'">
|
||||
<div>
|
||||
@@ -266,7 +266,7 @@
|
||||
<span class="text-xs font-bold text-gray-300">{{ $i + 1 }}</span>
|
||||
@endif
|
||||
</div>
|
||||
<img src="/images/headface/{{ strtolower($row->user?->headface ?? '1.gif') }}"
|
||||
<img src="{{ $row->user?->headface_url ?? '/images/headface/1.gif' }}"
|
||||
class="w-8 h-8 rounded-full border border-purple-100 object-cover bg-white shrink-0"
|
||||
onerror="this.src='/images/headface/1.gif'">
|
||||
<div class="flex-1 min-w-0">
|
||||
|
||||
Reference in New Issue
Block a user