Remove grid view option from mobile search header
Removes the mobile-specific grid view toggle from the search header component in client/src/components/search-header.tsx. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 2eb1084e-b728-4449-9231-f1665924c8d5 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/8cc42625-c1f5-4e43-99bd-77f2c4dedee2/2eb1084e-b728-4449-9231-f1665924c8d5/hDXW7gU
This commit is contained in:
parent
346f4a16fb
commit
b4ee310ea3
@ -121,45 +121,6 @@ export default function SearchHeader({
|
||||
>
|
||||
Home
|
||||
</a>
|
||||
<div className="text-bunny-light py-2 border-b border-white/10">
|
||||
<span className="text-sm text-bunny-muted mb-2 block">View Options</span>
|
||||
<div className="flex bg-bunny-gray rounded-lg p-1 w-fit">
|
||||
<Button
|
||||
variant={currentView === "grid" ? "default" : "ghost"}
|
||||
size="sm"
|
||||
onClick={() => {
|
||||
onViewChange("grid");
|
||||
setIsMobileMenuOpen(false);
|
||||
}}
|
||||
className={`px-3 py-1 rounded text-sm ${
|
||||
currentView === "grid"
|
||||
? "bg-bunny-blue text-white"
|
||||
: "text-bunny-muted hover:text-white"
|
||||
}`}
|
||||
data-testid="button-mobile-grid-view"
|
||||
>
|
||||
<Grid3X3 className="w-4 h-4 mr-1" />
|
||||
Grid
|
||||
</Button>
|
||||
<Button
|
||||
variant={currentView === "list" ? "default" : "ghost"}
|
||||
size="sm"
|
||||
onClick={() => {
|
||||
onViewChange("list");
|
||||
setIsMobileMenuOpen(false);
|
||||
}}
|
||||
className={`px-3 py-1 rounded text-sm ${
|
||||
currentView === "list"
|
||||
? "bg-bunny-blue text-white"
|
||||
: "text-bunny-muted hover:text-white"
|
||||
}`}
|
||||
data-testid="button-mobile-list-view"
|
||||
>
|
||||
<List className="w-4 h-4 mr-1" />
|
||||
List
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user