Skip to content

Commit

Permalink
Ensure word wrap in search results
Browse files Browse the repository at this point in the history
  • Loading branch information
daun committed Oct 21, 2024
1 parent e98be72 commit 57b0ea3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/js/components/GlobalSearch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

<div v-show="focused && (hasResults || hasFavorites)" class="global-search-results">

<div v-if="hasResults" v-for="(result, index) in results" class="global-search-result-item p-2 flex items-center" :class="{ 'active': current == index }" @click="hit" @mousemove="setActive(index)">
<div v-if="hasResults" v-for="(result, index) in results" class="global-search-result-item break-overflowing-words p-2 flex items-start" :class="{ 'active': current == index }" @click="hit" @mousemove="setActive(index)">
<svg-icon :name="`light/${getResultIcon(result)}`" class="icon"></svg-icon>
<div class="flex-1 rtl:mr-2 ltr:ml-2 title" v-html="result.title"></div>
<span class="global-search-result-badge" v-text="result.badge" />
Expand Down

0 comments on commit 57b0ea3

Please sign in to comment.