Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia
TypeScript apiapi-clientapi-restapi-testingdeveloper-toolsgraphqlhttphttp-clientpwarestrest-apispatestingtesting-toolstoolsvuevuejswebsocket
fix: text overflow on spotlight search results (#3181)
Liyas Thomas31fd6567b7a2
diff --git a/packages/hoppscotch-common/src/components/app/spotlight/Entry.vue b/packages/hoppscotch-common/src/components/app/spotlight/Entry.vueindex 1d0593ba9..bcee97c4e 100644--- a/packages/hoppscotch-common/src/components/app/spotlight/Entry.vue+++ b/packages/hoppscotch-common/src/components/app/spotlight/Entry.vue@@ -12,37 +12,37 @@class="opacity-50 svg-icons":class="{ 'opacity-100': active }"/>- <span+ <templatev-if="entry.text.type === 'text' && typeof entry.text.text === 'string'"- class="block truncate">- {{ entry.text.text }}- </span>- <span+ <span class="block truncate">+ {{ entry.text.text }}+ </span>+ </template>+ <templatev-else-if="entry.text.type === 'text' && Array.isArray(entry.text.text)"- class="flex items-center flex-1">- <span+ <templatev-for="(labelPart, labelPartIndex) in entry.text.text":key="`label-${labelPart}-${labelPartIndex}`"- class="flex items-center space-x-2">- {{ labelPart }}+ <span class="block truncate">+ {{ labelPart }}+ </span><icon-lucide-chevron-rightv-if="labelPartIndex < entry.text.text.length - 1"- class="block truncate"+ class="flex flex-shrink-0"+ />+ </template>+ </template>+ <template v-else-if="entry.text.type === 'custom'">+ <span class="block truncate">+ <component+ :is="entry.text.component"+ v-bind="entry.text.componentProps"/></span>- </span>- <span- v-else-if="entry.text.type === 'custom'"- class="block truncate w-full"- >- <component- :is="entry.text.component"- v-bind="entry.text.componentProps"- />- </span>+ </template><span v-if="formattedShortcutKeys" class="block truncate"><kbdv-for="(key, keyIndex) in formattedShortcutKeys"