Add Chromebook compatibility fixes and optimizations

Implemented comprehensive Chromebook-specific fixes including viewport adjustments, enhanced touch and keyboard detection, improved scrolling and keyboard navigation hooks, and extensive CSS optimizations for better usability. Updated chat and dashboard interfaces for larger touch targets, better focus management, and responsive layouts. Added documentation in docs/CHROMEBOOK-FIXES.md and new hooks for Chromebook scroll and keyboard handling.
This commit is contained in:
NotII
2025-10-26 18:29:23 +00:00
parent 1fc29e6cbf
commit 130ecac208
27 changed files with 691 additions and 65 deletions

View File

@@ -386,18 +386,18 @@ export default function ProductsPage() {
return (
<Layout>
<div className="space-y-6">
<div className="flex items-center justify-between">
<div className="flex flex-col lg:flex-row lg:items-center lg:justify-between gap-4">
<h1 className="text-2xl font-semibold text-gray-900 dark:text-white flex items-center">
<Package2 className="mr-2 h-6 w-6" />
Products
</h1>
<div className="flex items-center gap-3">
<div className="flex flex-col sm:flex-row items-stretch sm:items-center gap-3">
<div className="relative">
<Search className="absolute left-2.5 top-2.5 h-4 w-4 text-muted-foreground" />
<Input
type="search"
placeholder="Search products..."
className="w-64 pl-8"
className="w-full sm:w-64 pl-8"
value={searchTerm}
onChange={(e) => setSearchTerm(e.target.value)}
/>
@@ -412,18 +412,22 @@ export default function ProductsPage() {
</Button>
)}
</div>
<Button
onClick={() => setImportModalOpen(true)}
variant="outline"
className="gap-2"
>
<Upload className="h-4 w-4" />
Import Products
</Button>
<Button onClick={() => setAddProductOpen(true)} className="gap-2">
<Plus className="h-4 w-4" />
Add Product
</Button>
<div className="flex gap-2">
<Button
onClick={() => setImportModalOpen(true)}
variant="outline"
className="gap-2 flex-1 sm:flex-none"
>
<Upload className="h-4 w-4" />
<span className="hidden sm:inline">Import Products</span>
<span className="sm:hidden">Import</span>
</Button>
<Button onClick={() => setAddProductOpen(true)} className="gap-2 flex-1 sm:flex-none">
<Plus className="h-4 w-4" />
<span className="hidden sm:inline">Add Product</span>
<span className="sm:hidden">Add</span>
</Button>
</div>
</div>
</div>