mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 14:31:26 +00:00
Update search results, fix status grid
This commit is contained in:
parent
f86fc83cbd
commit
f6663c7ded
2 changed files with 7 additions and 8 deletions
|
@ -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;
|
||||||
|
|
|
@ -67,16 +67,14 @@
|
||||||
|
|
||||||
<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">
|
||||||
<p class="text-center lead">No results found!</p>
|
<p class="text-center lead">No results found!</p>
|
||||||
|
|
Loading…
Reference in a new issue