@@ -73,7 +73,8 @@ onKeyStroke(['ArrowDown', 'ArrowUp', 'Enter', 'Escape'], (e) => {
7373<template >
7474 <div
7575 ref =" containerRef"
76- class =" border border-[var(--color-border)] rounded-lg bg-[var(--color-background)] flex flex-col h-[500px] max-h-[70vh] shadow-2xl relative" :class =" [
76+ class =" border border-[var(--color-border)] rounded-lg bg-[var(--color-background)] flex flex-col h-[500px] max-h-[70vh] shadow-2xl relative"
77+ :class =" [
7778 containerClass,
7879 ]"
7980 role =" combobox"
@@ -92,12 +93,16 @@ onKeyStroke(['ArrowDown', 'ArrowUp', 'Enter', 'Escape'], (e) => {
9293 </div >
9394
9495 <!-- Results Container - Scrollable area -->
95- <div id =" command-results" class =" flex-1 min-h-0 overflow-y-auto" >
96+ <div
97+ id =" command-results"
98+ class =" flex-1 min-h-0 overflow-y-auto"
99+ >
96100 <!-- Results -->
97101 <template v-if =" searchResults .length > 0 " >
98102 <div class =" text-xs text-[var(--color-text-muted)] tracking-wider px-4 py-2 bg-[var(--color-background)] uppercase top-0 sticky" >
99103 Posts
100104 </div >
105+
101106 <CommandPaletteResults
102107 :results =" searchResults "
103108 :selected-index =" selectedIndex "
@@ -110,19 +115,31 @@ onKeyStroke(['ArrowDown', 'ArrowUp', 'Enter', 'Escape'], (e) => {
110115 </template >
111116
112117 <!-- Empty state placeholder to maintain height -->
113- <div v-else class =" flex h-full items-center justify-center" >
118+ <div
119+ v-else
120+ class =" flex h-full items-center justify-center"
121+ >
114122 <!-- No results -->
115- <div v-if =" query && searchResults.length === 0 && !searchLoading" class =" text-[var(--color-text-muted)] px-4 py-8 text-center" >
123+ <div
124+ v-if =" query && searchResults.length === 0 && !searchLoading"
125+ class =" text-[var(--color-text-muted)] px-4 py-8 text-center"
126+ >
116127 No results found for "{{ query }}"
117128 </div >
118129
119130 <!-- Loading state -->
120- <div v-else-if =" searchLoading" class =" text-[var(--color-text-muted)] px-4 py-8 text-center" >
131+ <div
132+ v-else-if =" searchLoading"
133+ class =" text-[var(--color-text-muted)] px-4 py-8 text-center"
134+ >
121135 Searching...
122136 </div >
123137
124138 <!-- Initial state -->
125- <div v-else class =" text-[var(--color-text-muted)] px-4 py-8 text-center" >
139+ <div
140+ v-else
141+ class =" text-[var(--color-text-muted)] px-4 py-8 text-center"
142+ >
126143 Start typing to search...
127144 </div >
128145 </div >
0 commit comments