プロフィール画像のsrcsetを出力するヘルパーを追加

This commit is contained in:
shibafu committed 2020-01-28 01:38:30 +09:00
1 parent 9f565798c0
commit 9431cd5b5d
8 files changed
+26 -9

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
<div class="card mb-4">
<div class="card-body">
<img src="{{ $user->getProfileImageUrl(128) }}" class="rounded mb-1">
<img src="{{ $user->getProfileImageUrl(128) }}" srcset="{{ Formatter::profileImageSrcSet($user, 128) }}" class="rounded mb-1">
<h4 class="card-title">
<a class="text-dark" href="{{ route('user.profile', ['name' => $user->name]) }}">{{ $user->display_name }}</a>
</h4>