Skip to content

Commit e5107b4

Browse files
committed
fix: wip
1 parent 70dcccc commit e5107b4

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

docs-v3/components/SearchInput.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div class="relative w-full max-w-md lg:max-w-md">
2+
<div class="relative w-full lg:max-w-md">
33
<button
44
@click="openSearchModal"
55
class="flex items-center w-full px-3 py-2 text-left border border-gray-300 dark:border-gray-600 rounded-md bg-white dark:bg-gray-800 hover:bg-gray-50 dark:hover:bg-gray-700/50 focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-primary-500 transition-colors group"

docs-v3/components/SearchModal.vue

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@
1212
></div>
1313

1414
<!-- 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">
1616
<div
1717
data-modal-content
1818
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);"
2121
@click.stop
2222
>
2323
<!-- 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">
2525
<svg
2626
class="h-5 w-5 text-gray-400 dark:text-gray-500 mr-3"
2727
fill="none"
@@ -56,7 +56,7 @@
5656
<!-- Results -->
5757
<div class="max-h-96 overflow-y-auto">
5858
<!-- 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">
6060
<svg class="mx-auto h-12 w-12 text-gray-400 dark:text-gray-500" fill="none" viewBox="0 0 24 24" stroke="currentColor">
6161
<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" />
6262
</svg>
@@ -65,13 +65,13 @@
6565
</div>
6666

6767
<!-- 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">
6969
<div class="animate-spin rounded-full h-8 w-8 border-b-2 border-primary-600 mx-auto"></div>
7070
<p class="mt-4 text-gray-500 dark:text-gray-400">Searching...</p>
7171
</div>
7272

7373
<!-- 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">
7575
<svg class="mx-auto h-12 w-12 text-gray-400 dark:text-gray-500" fill="none" viewBox="0 0 24 24" stroke="currentColor">
7676
<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" />
7777
</svg>
@@ -85,7 +85,7 @@
8585
v-for="(result, index) in searchResults"
8686
:key="result.path"
8787
: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',
8989
selectedIndex === index ? 'bg-primary-50 dark:bg-primary-900/20' : ''
9090
]"
9191
@click="goToResult(result)"
@@ -118,7 +118,7 @@
118118
</div>
119119

120120
<!-- 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">
122122
<p class="text-xs text-gray-500 dark:text-gray-400">
123123
{{ searchResults.length > 0 ? `${searchResults.length} result${searchResults.length === 1 ? '' : 's'}` : '' }}
124124
</p>

docs-v3/components/TheHeader.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
2-
<header class="sticky top-0 z-40 bg-white/90 dark:bg-gray-900/90 backdrop-blur border-b border-gray-200 dark:border-gray-700">
3-
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
2+
<header class="sticky top-0 z-40 bg-white/90 dark:bg-gray-900/90 backdrop-blur border-b border-gray-200 dark:border-gray-700 w-full">
3+
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 w-full">
44
<div class="flex items-center justify-between h-16">
55
<!-- Logo and brand -->
66
<div class="flex items-center">
@@ -64,8 +64,8 @@
6464
</div>
6565

6666
<!-- Mobile search -->
67-
<div class="lg:hidden px-4 pb-4 bg-white dark:bg-gray-900 border-t border-gray-200 dark:border-gray-700">
68-
<div class="pt-4">
67+
<div class="lg:hidden px-4 pb-4 bg-white dark:bg-gray-900 border-t border-gray-200 dark:border-gray-700 w-full">
68+
<div class="pt-4 w-full">
6969
<SearchInput />
7070
</div>
7171
</div>

0 commit comments

Comments
 (0)