This commit is contained in:
Yuhong Sun
2024-07-17 23:47:10 -07:00
committed by GitHub
parent 87fadb07ea
commit e4984153c0
7 changed files with 112 additions and 83 deletions

View File

@@ -49,8 +49,10 @@ const ToggleSwitch = () => {
onClick={() => handleTabChange("search")}
>
<SearchIcon size={16} className="mr-2" />
Search
<span className="text-xs ml-2">{commandSymbol}S</span>
<p className="items-baseline flex">
Search
<span className="text-xs ml-2">{commandSymbol}S</span>
</p>
</button>
<button
className={`px-4 py-2 rounded-full text-sm font-medium transition-colors duration-300 ease-in-out flex items-center relative z-10 ${

View File

@@ -202,7 +202,7 @@ export const SearchResultsDisplay = ({
setShowAll((showAll) => !showAll);
}
}}
className={`flex items-center justify-center animate-fade-in-up rounded-lg p-1 text-xs transition-all duration-300 w-16 h-8 ${
className={`flex items-center justify-center animate-fade-in-up rounded-lg p-1 text-xs transition-all duration-300 w-20 h-8 ${
!sweep
? "bg-green-500 text-text-800"
: "bg-rose-700 text-text-100"
@@ -217,16 +217,18 @@ export const SearchResultsDisplay = ({
<span></span>
{!sweep
? agenticResults
? "all"
: "hide"
? "Show All"
: "Focus"
: agenticResults
? "hide"
: "undo"}
{!sweep ? (
<BroomIcon className="h-4 w-4" />
) : (
<UndoIcon className="h-4 w-4" />
)}
? "Focus"
: "Show All"}
<span className="ml-1">
{!sweep ? (
<BroomIcon className="h-4 w-4" />
) : (
<UndoIcon className="h-4 w-4" />
)}
</span>
</div>
</button>
</Tooltip>