|
12 | 12 | ></div> |
13 | 13 |
|
14 | 14 | <!-- Modal --> |
15 | | - <div class="flex min-h-full items-start justify-center p-4 pt-16 sm:pt-24"> |
| 15 | + <div class="flex min-h-full items-start justify-center p-2 sm:p-4 pt-8 sm:pt-16 md:pt-24"> |
16 | 16 | <div |
17 | 17 | data-modal-content |
18 | 18 | tabindex="-1" |
19 | | - class="relative w-full max-w-2xl transform rounded-xl bg-white/90 dark:bg-gray-800/90 backdrop-blur-2xl shadow-2xl border-2 border-primary-400/40 dark:border-primary-500/50 ring-4 ring-primary-500/30 dark:ring-primary-400/40 transition-all" |
20 | | - style="box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 2px rgba(139, 92, 246, 0.3), 0 0 30px rgba(139, 92, 246, 0.2), 0 0 60px rgba(139, 92, 246, 0.1);" |
| 19 | + class="relative w-full max-w-full sm:max-w-2xl transform rounded-xl bg-white/90 dark:bg-gray-800/90 backdrop-blur-2xl shadow-2xl border-2 border-primary-400/40 dark:border-primary-500/50 ring-4 ring-primary-500/30 dark:ring-primary-400/40 transition-all" |
| 20 | + style="box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 2px rgba(59, 130, 246, 0.3), 0 0 30px rgba(59, 130, 246, 0.2), 0 0 60px rgba(59, 130, 246, 0.1);" |
21 | 21 | @click.stop |
22 | 22 | > |
23 | 23 | <!-- Search input --> |
24 | | - <div class="flex items-center px-4 py-4 border-b border-gray-200 dark:border-gray-700"> |
| 24 | + <div class="flex items-center px-3 sm:px-4 py-4 border-b border-gray-200 dark:border-gray-700"> |
25 | 25 | <svg |
26 | 26 | class="h-5 w-5 text-gray-400 dark:text-gray-500 mr-3" |
27 | 27 | fill="none" |
|
56 | 56 | <!-- Results --> |
57 | 57 | <div class="max-h-96 overflow-y-auto"> |
58 | 58 | <!-- No query state --> |
59 | | - <div v-if="!searchQuery" class="px-6 py-14 text-center"> |
| 59 | + <div v-if="!searchQuery" class="px-3 sm:px-6 py-14 text-center"> |
60 | 60 | <svg class="mx-auto h-12 w-12 text-gray-400 dark:text-gray-500" fill="none" viewBox="0 0 24 24" stroke="currentColor"> |
61 | 61 | <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z" /> |
62 | 62 | </svg> |
|
65 | 65 | </div> |
66 | 66 |
|
67 | 67 | <!-- Loading state --> |
68 | | - <div v-else-if="isSearching" class="px-6 py-14 text-center"> |
| 68 | + <div v-else-if="isSearching" class="px-3 sm:px-6 py-14 text-center"> |
69 | 69 | <div class="animate-spin rounded-full h-8 w-8 border-b-2 border-primary-600 mx-auto"></div> |
70 | 70 | <p class="mt-4 text-gray-500 dark:text-gray-400">Searching...</p> |
71 | 71 | </div> |
72 | 72 |
|
73 | 73 | <!-- No results --> |
74 | | - <div v-else-if="searchQuery && searchResults.length === 0" class="px-6 py-14 text-center"> |
| 74 | + <div v-else-if="searchQuery && searchResults.length === 0" class="px-3 sm:px-6 py-14 text-center"> |
75 | 75 | <svg class="mx-auto h-12 w-12 text-gray-400 dark:text-gray-500" fill="none" viewBox="0 0 24 24" stroke="currentColor"> |
76 | 76 | <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9.172 16.172a4 4 0 015.656 0M9 12h6m-6-4h6m2 5.291A7.962 7.962 0 0112 15c-2.205 0-4.219-.896-5.671-2.343M15 11a3 3 0 11-6 0 3 3 0 016 0z" /> |
77 | 77 | </svg> |
|
85 | 85 | v-for="(result, index) in searchResults" |
86 | 86 | :key="result.path" |
87 | 87 | :class="[ |
88 | | - 'px-4 py-4 hover:bg-gray-50 dark:hover:bg-gray-700/50 cursor-pointer transition-colors', |
| 88 | + 'px-3 sm:px-4 py-4 hover:bg-gray-50 dark:hover:bg-gray-700/50 cursor-pointer transition-colors', |
89 | 89 | selectedIndex === index ? 'bg-primary-50 dark:bg-primary-900/20' : '' |
90 | 90 | ]" |
91 | 91 | @click="goToResult(result)" |
|
118 | 118 | </div> |
119 | 119 |
|
120 | 120 | <!-- Footer --> |
121 | | - <div class="flex items-center justify-between px-4 py-3 border-t border-gray-200 dark:border-gray-700 bg-gray-50 dark:bg-gray-800/50"> |
| 121 | + <div class="flex items-center justify-between px-3 sm:px-4 py-3 border-t border-gray-200 dark:border-gray-700 bg-gray-50 dark:bg-gray-800/50"> |
122 | 122 | <p class="text-xs text-gray-500 dark:text-gray-400"> |
123 | 123 | {{ searchResults.length > 0 ? `${searchResults.length} result${searchResults.length === 1 ? '' : 's'}` : '' }} |
124 | 124 | </p> |
|
0 commit comments