浏览代码

Make notification image a background-image

Stasiek Michalski 7 年之前
父节点
当前提交
410f9dab34
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      resources/views/account/activity.blade.php

+ 3 - 1
resources/views/account/activity.blade.php

@@ -53,7 +53,9 @@
           </span>
           </span>
           <span class="float-right notification-action">
           <span class="float-right notification-action">
             @if($notification->item_id)
             @if($notification->item_id)
-              <a href="{{$notification->status->parent()->url()}}"><img src="{{$notification->status->parent()->thumb()}}" width="32px" height="32px"></a>
+              <a href="{{$notification->status->parent()->url()}}">
+                <div class="notification-image" style="background-image: url('{{$notification->status->parent()->thumb()}}')"></div>
+              </a>
             @endif
             @endif
           </span>
           </span>
         @break
         @break