diff --git a/app/secret/page.tsx b/app/secret/page.tsx
index 9d8f97f..903cf7a 100644
--- a/app/secret/page.tsx
+++ b/app/secret/page.tsx
@@ -58,12 +58,12 @@ function SecretHomePage() {
)}
- {/* Empty State - Hidden mode information */}
+ {/* Empty State - Adult content zone */}
{!loading && !hasSearched && (
-
隐藏模式已激活
+
18+ 专区
- 搜索后将显示结果,搜索记录不会保存到首页历史
+ 此区域的搜索记录不会显示在首页历史
)}
diff --git a/components/search/SearchHistoryDropdown.tsx b/components/search/SearchHistoryDropdown.tsx
index d50bfc6..66ac4f9 100644
--- a/components/search/SearchHistoryDropdown.tsx
+++ b/components/search/SearchHistoryDropdown.tsx
@@ -50,7 +50,7 @@ export function SearchHistoryDropdown({
}
}, [highlightedIndex]);
- if (!isOpen) {
+ if (!isOpen || searchHistory.length === 0) {
return null;
}
@@ -65,31 +65,25 @@ export function SearchHistoryDropdown({
e.preventDefault();
}}
>
- {searchHistory.length === 0 ? (
-
- ) : (
- <>
- {/* Header with clear all button */}
-
+ {/* Header with clear all button */}
+
- {/* Divider */}
-
+ {/* Divider */}
+
- {/* History items */}
-
- {searchHistory.map((item, index) => (
-
- ))}
-
- >
- )}
+ {/* History items */}
+
+ {searchHistory.map((item, index) => (
+
+ ))}
+
);
}