]> BookStack Code Mirror - bookstack/commitdiff
Made a couple of fixes during testing
authorDan Brown <redacted>
Sun, 3 Jan 2021 19:02:50 +0000 (19:02 +0000)
committerDan Brown <redacted>
Sun, 3 Jan 2021 19:02:50 +0000 (19:02 +0000)
- Updated audit table so long entity names did not squish everything
  else.
- Added filtering to view service popular list so that recycle binned
  items did not cause issues.

app/Actions/ViewService.php
resources/views/settings/audit.blade.php

index ec57cdb764b6e701a109c20a7ad9668048db2f94..51a60d96e20effd49c6eda2ea7f247deb828d6a6 100644 (file)
@@ -74,7 +74,12 @@ class ViewService
             $query->whereIn('viewable_type', $this->entityProvider->getMorphClasses($filterModels));
         }
 
-        return $query->with('viewable')->skip($skipCount)->take($count)->get()->pluck('viewable');
+        return $query->with('viewable')
+            ->skip($skipCount)
+            ->take($count)
+            ->get()
+            ->pluck('viewable')
+            ->filter();
     }
 
     /**
index 1996e1c2144e59119d00b0f34cbfaf39d3b44626..c52390f73c4e7c453ecc71984efc1d2fa17011ba 100644 (file)
@@ -63,7 +63,7 @@
                         @include('partials.table-user', ['user' => $activity->user, 'user_id' => $activity->user_id])
                     </td>
                     <td>{{ $activity->type }}</td>
-                    <td>
+                    <td width="40%">
                         @if($activity->entity)
                             <a href="{{ $activity->entity->getUrl() }}" class="table-entity-item">
                                 <span role="presentation" class="icon text-{{$activity->entity->getType()}}">@icon($activity->entity->getType())</span>