mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-15 06:35:20 -07:00
Show icons for context in search
This commit is contained in:
parent
251938a782
commit
69a4b5594d
1 changed files with 11 additions and 7 deletions
|
|
@ -92,15 +92,14 @@
|
|||
style="transition-property: border;"
|
||||
>
|
||||
|
||||
<client-only>
|
||||
<div class="absolute hidden left-0 h-12 w-12 rounded-full md:flex items-center justify-center bg-darker">
|
||||
{{ result.listing.name.charAt(0) }}
|
||||
</div>
|
||||
</client-only>
|
||||
|
||||
<div class="absolute hidden left-0 h-12 w-12 rounded-full md:flex items-center justify-center bg-darker">
|
||||
{{ getIconForListing( result.listing ) }}
|
||||
</div>
|
||||
|
||||
<div
|
||||
v-if="getAppCategory(result.listing).icon"
|
||||
v-html="`${getAppCategory(result.listing).icon} ${ makeHighlightedResultTitle( result ) }`"
|
||||
v-html="`${ makeHighlightedResultTitle( result ) }`"
|
||||
/>
|
||||
<div
|
||||
v-else
|
||||
|
|
@ -219,7 +218,10 @@ import {
|
|||
statusFilterSeparator,
|
||||
} from '~/helpers/statuses.js'
|
||||
import { getAppCategory } from '~/helpers/categories.js'
|
||||
import { getAppEndpoint } from '~/helpers/app-derived.js'
|
||||
import {
|
||||
getAppEndpoint,
|
||||
getIconForListing
|
||||
} from '~/helpers/app-derived.js'
|
||||
import {
|
||||
StorkClient,
|
||||
makeHighlightedMarkup,
|
||||
|
|
@ -356,6 +358,8 @@ export default {
|
|||
|
||||
getAppCategory,
|
||||
getAppEndpoint,
|
||||
getIconForListing,
|
||||
|
||||
getSearchLinks (app) {
|
||||
return app?.searchLinks || []
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue