Skip to content

Commit

Permalink
Clip long typeahead item names
Browse files Browse the repository at this point in the history
  • Loading branch information
mzur committed Nov 5, 2024
1 parent 77ec4ae commit 363eeb8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion resources/assets/js/core/components/typeaheadItem.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<li>
<a href="#" @click.prevent="props.select(item)">
<span v-html="props.highlight(item)"></span>
<span class="typeahead-item-name" v-html="props.highlight(item)" :title="item.name"></span>
<span v-if="info">
<br><small class="typeahead-item-info" v-text="info" :title="info"></small>
</span>
Expand Down
2 changes: 1 addition & 1 deletion resources/assets/sass/components/_typeahead.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
display: block;
}

.typeahead-item-info {
.typeahead-item-info, .typeahead-item-name {
display: inline-block;
max-width: 250px;
text-overflow: ellipsis;
Expand Down

0 comments on commit 363eeb8

Please sign in to comment.