Update search results, fix status grid

This commit is contained in:
Daniel Supernault 2019-07-07 21:17:47 -06:00
parent f86fc83cbd
commit f6663c7ded
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7
2 changed files with 7 additions and 8 deletions

View file

@ -143,6 +143,7 @@ class SearchController extends Controller
'tokens' => [$item->caption], 'tokens' => [$item->caption],
'name' => $item->caption, 'name' => $item->caption,
'thumb' => $item->thumb(), 'thumb' => $item->thumb(),
'filter' => $item->firstMedia()->filter_class
]; ];
}); });
$tokens['posts'] = $posts; $tokens['posts'] = $posts;

View file

@ -67,15 +67,13 @@
<div v-if="filters.statuses && results.statuses" class="row mb-4"> <div v-if="filters.statuses && results.statuses" class="row mb-4">
<p class="col-12 font-weight-bold text-muted">Statuses</p> <p class="col-12 font-weight-bold text-muted">Statuses</p>
<a v-for="(status, index) in results.statuses" class="col-12 col-md-4 mb-3" style="text-decoration: none;" :href="status.url"> <div v-for="(status, index) in results.statuses" class="col-4 p-0 p-sm-2 p-md-3 hashtag-post-square">
<div class="card"> <a class="card info-overlay card-md-border-0" :href="status.url">
<img class="card-img-top img-fluid" :src="status.thumb"> <div :class="[status.filter ? 'square ' + status.filter : 'square']">
<div class="card-body text-center "> <div class="square-content" :style="'background-image: url('+status.thumb+')'"></div>
<p class="mb-0 small text-truncate font-weight-bold text-muted" v-html="status.value">
</p>
</div> </div>
</div> </a>
</a> </div>
</div> </div>
<div v-if="!results.hashtags && !results.profiles && !results.statuses"> <div v-if="!results.hashtags && !results.profiles && !results.statuses">