feat(07.1-frontend-overhaul): refactor inventory page buttons and inputs
- Applied btn-primary and btn-secondary classes - Removed rounded corners and shadows - Updated labels to Title Case - Standardized input styles
This commit is contained in:
@@ -275,7 +275,7 @@ export default function InventoryPage() {
|
||||
</datalist>
|
||||
|
||||
<header className="flex items-center gap-4 mb-4 md:mb-6">
|
||||
<div className="p-3 md:p-4 bg-primary/10 rounded-3xl text-primary border border-primary/20 shadow-xl shadow-primary/5">
|
||||
<div className="p-3 md:p-4 bg-primary/10 text-primary border border-primary/20">
|
||||
<Package size={28} className="md:w-8 md:h-8" />
|
||||
</div>
|
||||
<div>
|
||||
@@ -284,14 +284,14 @@ export default function InventoryPage() {
|
||||
</div>
|
||||
<button
|
||||
onClick={() => setShowSearchModal(true)}
|
||||
className="ml-auto p-3 bg-surface border border-slate-800 text-secondary rounded-2xl hover:text-primary transition-all active:scale-95 shadow-xl"
|
||||
title="Search inventory"
|
||||
className="ml-auto p-3 bg-surface border border-border text-secondary hover:text-primary transition-all active:scale-95"
|
||||
title="Search Inventory"
|
||||
>
|
||||
<Search size={20} />
|
||||
</button>
|
||||
<button
|
||||
onClick={() => setShowBoxManager(true)}
|
||||
className="p-3 bg-surface border border-slate-800 text-secondary rounded-2xl hover:text-primary transition-all active:scale-95 shadow-xl"
|
||||
className="p-3 bg-surface border border-border text-secondary hover:text-primary transition-all active:scale-95"
|
||||
title="Manage Boxes"
|
||||
>
|
||||
<Layout size={20} />
|
||||
@@ -346,13 +346,13 @@ export default function InventoryPage() {
|
||||
|
||||
{/* Stock Adjustment / Edit Item Overlay */}
|
||||
{selectedItem && (
|
||||
<div className="fixed inset-0 z-50 flex items-end sm:items-center justify-center p-0 sm:p-4 lg:p-5 xl:p-6 lg:p-8 xl:p-10 bg-background/80 animate-in fade-in duration-200">
|
||||
<div className="w-full max-w-lg bg-surface border-x border-t sm:border border-slate-800 rounded-t-[2.5rem] sm:rounded-[2.5rem] shadow-2xl p-5 sm:p-8 overflow-hidden animate-in slide-in-from-bottom-10 duration-300">
|
||||
<div className="fixed inset-0 z-50 flex items-end sm:items-center justify-center p-0 sm:p-4 bg-background/80 animate-in fade-in duration-200">
|
||||
<div className="w-full max-w-lg bg-surface border-x border-t sm:border border-border p-5 sm:p-8 overflow-hidden animate-in slide-in-from-bottom-10 duration-300">
|
||||
<div className="flex justify-between items-center mb-3 md:mb-4">
|
||||
<h3 className="text-xl font-normal tracking-tight flex items-center gap-2">
|
||||
{isEditing ? "Edit Item" : selectedItem.name}
|
||||
{!isEditing && (
|
||||
<span className="text-xs bg-slate-800 text-secondary px-3 py-1 rounded-lg font-normal tracking-tight">
|
||||
<span className="text-xs bg-black text-secondary px-3 py-1 border border-border font-normal tracking-tight">
|
||||
In Stock: {selectedItem.quantity}
|
||||
</span>
|
||||
)}
|
||||
@@ -364,7 +364,7 @@ export default function InventoryPage() {
|
||||
setEditedItem(selectedItem);
|
||||
setIsEditing(true);
|
||||
}}
|
||||
className="p-2 lg:p-3 xl:p-4 lg:p-5 xl:p-6 lg:p-8 xl:p-10 hover:bg-slate-800 rounded-full text-secondary"
|
||||
className="p-2 hover:bg-black border border-transparent hover:border-border text-secondary"
|
||||
>
|
||||
<Edit2 size={20} />
|
||||
</button>
|
||||
@@ -372,7 +372,7 @@ export default function InventoryPage() {
|
||||
{isEditing && (
|
||||
<button
|
||||
onClick={handleDeleteItem}
|
||||
className="p-2 lg:p-3 xl:p-4 lg:p-5 xl:p-6 lg:p-8 xl:p-10 hover:bg-red-500/20 rounded-full text-red-500"
|
||||
className="p-2 hover:bg-red-500/20 border border-transparent hover:border-red-500/50 text-red-500"
|
||||
>
|
||||
<Trash2 size={20} />
|
||||
</button>
|
||||
@@ -383,7 +383,7 @@ export default function InventoryPage() {
|
||||
setIsEditing(false);
|
||||
setAdjustQty(1);
|
||||
}}
|
||||
className="p-2 lg:p-3 xl:p-4 lg:p-5 xl:p-6 lg:p-8 xl:p-10 hover:bg-slate-800 rounded-full"
|
||||
className="p-2 hover:bg-black border border-transparent hover:border-border"
|
||||
>
|
||||
<X size={20} />
|
||||
</button>
|
||||
@@ -398,7 +398,7 @@ export default function InventoryPage() {
|
||||
type="text"
|
||||
value={editedItem.name || ''}
|
||||
onChange={e => setEditedItem({...editedItem, name: e.target.value})}
|
||||
className="w-full bg-background border border-slate-800 rounded-xl py-3 px-4 text-sm font-normal outline-none text-secondary placeholder:text-muted"
|
||||
className="w-full"
|
||||
/>
|
||||
</div>
|
||||
<div>
|
||||
@@ -407,7 +407,7 @@ export default function InventoryPage() {
|
||||
type="text"
|
||||
value={editedItem.part_number || ''}
|
||||
onChange={e => setEditedItem({...editedItem, part_number: e.target.value})}
|
||||
className="w-full bg-background border border-slate-800 rounded-xl py-3 px-4 text-sm font-normal outline-none text-secondary placeholder:text-muted"
|
||||
className="w-full"
|
||||
/>
|
||||
</div>
|
||||
<div className="grid grid-cols-2 gap-2 md:gap-3">
|
||||
@@ -418,8 +418,8 @@ export default function InventoryPage() {
|
||||
list="existing-categories"
|
||||
value={editedItem.category || ''}
|
||||
onChange={e => setEditedItem({ ...editedItem, category: e.target.value })}
|
||||
className="w-full bg-background border border-slate-800 rounded-xl py-3 px-4 text-sm font-normal outline-none text-secondary placeholder:text-muted"
|
||||
placeholder="e.g. storage"
|
||||
className="w-full"
|
||||
placeholder="e.g. Storage"
|
||||
/>
|
||||
<datalist id="existing-categories">
|
||||
{categoriesList.map(c => (
|
||||
@@ -434,7 +434,7 @@ export default function InventoryPage() {
|
||||
list="existing-types"
|
||||
value={editedItem.type || ''}
|
||||
onChange={e => setEditedItem({...editedItem, type: e.target.value})}
|
||||
className="w-full bg-background border border-slate-800 rounded-xl py-3 px-4 text-sm font-normal outline-none text-secondary"
|
||||
className="w-full"
|
||||
/>
|
||||
</div>
|
||||
<div>
|
||||
@@ -443,7 +443,7 @@ export default function InventoryPage() {
|
||||
type="text"
|
||||
value={editedItem.connector || ''}
|
||||
onChange={e => setEditedItem({...editedItem, connector: e.target.value})}
|
||||
className="w-full bg-background border border-slate-800 rounded-xl py-3 px-4 text-sm font-normal outline-none text-secondary"
|
||||
className="w-full"
|
||||
placeholder="e.g. LC/UPC"
|
||||
/>
|
||||
</div>
|
||||
@@ -453,7 +453,7 @@ export default function InventoryPage() {
|
||||
type="text"
|
||||
value={editedItem.size || ''}
|
||||
onChange={e => setEditedItem({...editedItem, size: e.target.value})}
|
||||
className="w-full bg-background border border-slate-800 rounded-xl py-3 px-4 text-sm font-normal outline-none text-secondary"
|
||||
className="w-full"
|
||||
placeholder="e.g. 1.6TB"
|
||||
/>
|
||||
</div>
|
||||
@@ -463,7 +463,7 @@ export default function InventoryPage() {
|
||||
type="text"
|
||||
value={editedItem.color || ''}
|
||||
onChange={e => setEditedItem({...editedItem, color: e.target.value})}
|
||||
className="w-full bg-background border border-slate-800 rounded-xl py-3 px-4 text-sm font-normal outline-none text-secondary"
|
||||
className="w-full"
|
||||
placeholder="e.g. Blue"
|
||||
/>
|
||||
</div>
|
||||
@@ -475,7 +475,7 @@ export default function InventoryPage() {
|
||||
list="existing-boxes"
|
||||
value={editedItem.box_label || ''}
|
||||
onChange={e => setEditedItem({...editedItem, box_label: e.target.value})}
|
||||
className="w-full bg-background border border-slate-800 rounded-xl py-3 pl-4 pr-12 text-sm font-normal outline-none text-secondary placeholder:text-muted focus:border-primary transition-colors"
|
||||
className="w-full pr-12"
|
||||
placeholder="e.g. Box 5"
|
||||
/>
|
||||
<button
|
||||
@@ -486,8 +486,8 @@ export default function InventoryPage() {
|
||||
toast.success("Ready to scan Box label...");
|
||||
}}
|
||||
className={cn(
|
||||
"absolute right-2 p-2 lg:p-3 xl:p-4 lg:p-5 xl:p-6 lg:p-8 xl:p-10 rounded-lg transition-all",
|
||||
fieldScanning?.active ? "bg-primary text-white animate-pulse" : "text-muted hover:bg-slate-800"
|
||||
"absolute right-2 p-2 transition-all",
|
||||
fieldScanning?.active ? "bg-primary text-black animate-pulse" : "text-muted hover:bg-black"
|
||||
)}
|
||||
>
|
||||
<Camera size={18} />
|
||||
@@ -500,7 +500,7 @@ export default function InventoryPage() {
|
||||
<textarea
|
||||
value={editedItem.specs || ''}
|
||||
onChange={e => setEditedItem({...editedItem, specs: e.target.value})}
|
||||
className="w-full bg-background border border-slate-800 rounded-xl py-3 px-4 text-sm font-normal outline-none text-secondary h-20 resize-none"
|
||||
className="w-full h-20 resize-none"
|
||||
/>
|
||||
</div>
|
||||
<div>
|
||||
@@ -508,13 +508,13 @@ export default function InventoryPage() {
|
||||
<textarea
|
||||
value={editedItem.ocr_text || ''}
|
||||
onChange={e => setEditedItem({...editedItem, ocr_text: e.target.value})}
|
||||
className="w-full bg-background border border-slate-800 rounded-xl py-3 px-4 text-sm font-normal outline-none text-primary/80 h-16 resize-none"
|
||||
className="w-full text-primary h-16 resize-none"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
) : (
|
||||
<>
|
||||
<div className="flex p-1 bg-background rounded-2xl mb-4 md:mb-6">
|
||||
<div className="flex p-1 bg-black border border-border mb-4 md:mb-6">
|
||||
{[
|
||||
{ id: 'ADD', label: 'Buy More', icon: Plus, color: 'text-primary' },
|
||||
{ id: 'REMOVE', label: 'Subtract', icon: Minus, color: 'text-amber-500' },
|
||||
@@ -524,8 +524,8 @@ export default function InventoryPage() {
|
||||
key={t.id}
|
||||
onClick={() => setAdjustType(t.id as any)}
|
||||
className={cn(
|
||||
"flex-1 flex flex-col items-center py-3 lg:py-4 xl:py-5 rounded-xl transition-all",
|
||||
adjustType === t.id ? "bg-slate-800 shadow-lg" : "text-muted"
|
||||
"flex-1 flex flex-col items-center py-3 lg:py-4 xl:py-5 transition-all",
|
||||
adjustType === t.id ? "bg-[#1A1A1A] border border-border" : "text-muted"
|
||||
)}
|
||||
>
|
||||
<t.icon size={20} className={adjustType === t.id ? t.color : ""} />
|
||||
@@ -538,25 +538,25 @@ export default function InventoryPage() {
|
||||
<div className="flex items-center gap-3 md:gap-4">
|
||||
<button
|
||||
onClick={() => setAdjustQty(Math.max(1, adjustQty - 1))}
|
||||
className="w-12 h-12 rounded-full border border-slate-800 flex items-center justify-center hover:bg-slate-800 transition-colors"
|
||||
className="w-12 h-12 border border-border flex items-center justify-center hover:bg-black transition-colors"
|
||||
>
|
||||
<Minus size={24} />
|
||||
</button>
|
||||
<span className="text-5xl font-normal tabular-nums">{adjustQty}</span>
|
||||
<button
|
||||
onClick={() => setAdjustQty(adjustQty + 1)}
|
||||
className="w-12 h-12 rounded-full border border-slate-800 flex items-center justify-center hover:bg-slate-800 transition-colors"
|
||||
className="w-12 h-12 border border-border flex items-center justify-center hover:bg-black transition-colors"
|
||||
>
|
||||
<Plus size={24} />
|
||||
</button>
|
||||
</div>
|
||||
|
||||
{adjustType === 'TRASH' && (
|
||||
<div className="w-full bg-red-500/5 border border-red-500/20 p-4 lg:p-5 xl:p-6 lg:p-8 xl:p-10 rounded-2xl">
|
||||
<div className="w-full bg-red-500/5 border border-red-500/20 p-4">
|
||||
<select
|
||||
value={trashReason}
|
||||
onChange={(e) => setTrashReason(e.target.value)}
|
||||
className="w-full bg-background border border-slate-800 rounded-xl py-3 lg:py-4 xl:py-5 px-4 lg:px-5 xl:px-6 text-sm lg:text-base xl:text-lg lg:text-xl xl:text-2xl lg:text-3xl xl:text-4xl outline-none text-foreground"
|
||||
className="w-full"
|
||||
>
|
||||
<option>Damaged</option>
|
||||
<option>Expired</option>
|
||||
@@ -572,18 +572,18 @@ export default function InventoryPage() {
|
||||
<button
|
||||
onClick={isEditing ? handleUpdateItem : handleAdjustStock}
|
||||
className={cn(
|
||||
"w-full py-4 sm:py-5 rounded-[1.8rem] font-normal text-lg transition-all active:scale-[0.98] shadow-xl",
|
||||
isEditing ? "bg-white text-slate-950 shadow-white/10" : (
|
||||
adjustType === 'ADD' ? "bg-primary text-white shadow-primary/20" :
|
||||
adjustType === 'REMOVE' ? "bg-amber-600 text-white shadow-amber-600/20" :
|
||||
"bg-red-600 text-white shadow-red-600/20"
|
||||
"w-full py-4 sm:py-5 font-normal text-lg transition-all active:scale-[0.98]",
|
||||
isEditing ? "bg-white text-black" : (
|
||||
adjustType === 'ADD' ? "btn-primary" :
|
||||
adjustType === 'REMOVE' ? "bg-amber-600 text-white" :
|
||||
"bg-red-600 text-white"
|
||||
)
|
||||
)}
|
||||
>
|
||||
{isEditing ? "Save Changes" : (
|
||||
adjustType === 'ADD' ? `Add ${adjustQty} to Stock` :
|
||||
adjustType === 'REMOVE' ? `Subtract ${adjustQty} from Stock` :
|
||||
`Discard ${adjustQty} items`
|
||||
adjustType === 'ADD' ? `Add ${adjustQty} To Stock` :
|
||||
adjustType === 'REMOVE' ? `Subtract ${adjustQty} From Stock` :
|
||||
`Discard ${adjustQty} Items`
|
||||
)}
|
||||
</button>
|
||||
</div>
|
||||
@@ -593,10 +593,10 @@ export default function InventoryPage() {
|
||||
{/* Category Edit Overlay */}
|
||||
{editingCategory && (
|
||||
<div className="fixed inset-0 z-50 flex items-center justify-center p-4 bg-background/90 animate-in fade-in duration-300">
|
||||
<div className="bg-surface border border-slate-800 rounded-3xl p-4 md:p-6 max-w-sm w-full shadow-2xl space-y-3 md:space-y-4 animate-in zoom-in-95 duration-200">
|
||||
<div className="bg-surface border border-border p-4 md:p-6 max-w-sm w-full shadow-2xl space-y-3 md:space-y-4 animate-in zoom-in-95 duration-200">
|
||||
<div className="flex justify-between items-center">
|
||||
<h2 className="text-xl font-normal">Edit Category</h2>
|
||||
<button onClick={() => setEditingCategory(null)} className="p-2 hover:bg-slate-800 rounded-full transition-colors text-secondary">
|
||||
<button onClick={() => setEditingCategory(null)} className="p-2 hover:bg-black border border-transparent hover:border-border transition-colors text-secondary">
|
||||
<X size={20} />
|
||||
</button>
|
||||
</div>
|
||||
@@ -608,7 +608,7 @@ export default function InventoryPage() {
|
||||
type="text"
|
||||
value={catEditedName}
|
||||
onChange={e => setCatEditedName(e.target.value)}
|
||||
className="w-full bg-background border border-slate-800 rounded-xl py-3 lg:py-4 xl:py-5 px-4 lg:px-5 xl:px-6 text-sm lg:text-base xl:text-lg lg:text-xl xl:text-2xl lg:text-3xl xl:text-4xl outline-none text-secondary"
|
||||
className="w-full"
|
||||
/>
|
||||
</div>
|
||||
<div>
|
||||
@@ -616,14 +616,14 @@ export default function InventoryPage() {
|
||||
<textarea
|
||||
value={catEditedDesc}
|
||||
onChange={e => setCatEditedDesc(e.target.value)}
|
||||
className="w-full bg-background border border-slate-800 rounded-xl py-3 lg:py-4 xl:py-5 px-4 lg:px-5 xl:px-6 text-sm lg:text-base xl:text-lg lg:text-xl xl:text-2xl lg:text-3xl xl:text-4xl outline-none text-secondary h-24 resize-none"
|
||||
className="w-full h-24 resize-none"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<button
|
||||
onClick={handleUpdateCategory}
|
||||
className="w-full bg-primary text-white font-normal py-4 rounded-2xl shadow-xl shadow-primary/20 hover:scale-[1.02] active:scale-95 transition-all"
|
||||
className="btn-primary w-full"
|
||||
>
|
||||
Update Category
|
||||
</button>
|
||||
@@ -641,8 +641,8 @@ export default function InventoryPage() {
|
||||
|
||||
{/* Box Manager Modal */}
|
||||
{showBoxManager && (
|
||||
<div className="fixed inset-0 z-50 flex items-center justify-center p-4 lg:p-5 xl:p-6 lg:p-8 xl:p-10 bg-background/90 animate-in fade-in duration-300">
|
||||
<div className="w-full max-w-2xl bg-surface border border-slate-800 rounded-[2.5rem] shadow-2xl overflow-hidden flex flex-col max-h-[90vh]">
|
||||
<div className="fixed inset-0 z-50 flex items-center justify-center p-4 bg-background/90 animate-in fade-in duration-300">
|
||||
<div className="w-full max-w-2xl bg-surface border border-border overflow-hidden flex flex-col max-h-[90vh]">
|
||||
<div className="p-4 md:p-6 pb-3 md:pb-4 flex flex-col gap-3 md:gap-4 shrink-0 bg-surface/70">
|
||||
<div className="flex justify-between items-center">
|
||||
<div>
|
||||
@@ -652,7 +652,7 @@ export default function InventoryPage() {
|
||||
</h3>
|
||||
<p className="text-sm text-muted font-normal mt-1">Manage physical box labels & printing</p>
|
||||
</div>
|
||||
<button onClick={() => { setShowBoxManager(false); setBoxSearchQuery(''); }} className="p-3 lg:p-4 xl:p-5 lg:p-6 xl:p-8 hover:bg-slate-800 rounded-full transition-colors text-secondary">
|
||||
<button onClick={() => { setShowBoxManager(false); setBoxSearchQuery(''); }} className="p-3 hover:bg-black border border-transparent hover:border-border transition-colors text-secondary">
|
||||
<X size={24} />
|
||||
</button>
|
||||
</div>
|
||||
@@ -663,13 +663,13 @@ export default function InventoryPage() {
|
||||
placeholder="Search boxes..."
|
||||
value={boxSearchQuery}
|
||||
onChange={(e) => setBoxSearchQuery(e.target.value)}
|
||||
className="w-full bg-background border border-slate-800 rounded-2xl py-3 lg:py-4 xl:py-5.5 pl-11 pr-4 text-sm lg:text-base xl:text-lg lg:text-xl xl:text-2xl lg:text-3xl xl:text-4xl focus:border-primary outline-none transition-all placeholder:text-secondary"
|
||||
className="w-full pl-11 pr-4"
|
||||
/>
|
||||
<Search className="absolute left-4 top-1/2 -translate-y-1/2 text-secondary" size={18} />
|
||||
{boxSearchQuery && (
|
||||
<button
|
||||
onClick={() => setBoxSearchQuery('')}
|
||||
className="absolute right-3 top-1/2 -translate-y-1/2 p-1.5 hover:bg-slate-800 rounded-lg text-muted"
|
||||
className="absolute right-3 top-1/2 -translate-y-1/2 p-1.5 hover:bg-black border border-border text-muted"
|
||||
>
|
||||
<X size={14} />
|
||||
</button>
|
||||
@@ -689,21 +689,21 @@ export default function InventoryPage() {
|
||||
{getFilteredBoxes(existingBoxes).map(box => {
|
||||
const itemCount = inventory.filter(i => i.box_label === box).length;
|
||||
return (
|
||||
<div key={box} className="bg-background/50 border border-slate-800/60 p-3 md:p-4 rounded-3xl flex flex-col gap-2 md:gap-3 group hover:border-primary/40 transition-all">
|
||||
<div key={box} className="bg-black/50 border border-border p-3 md:p-4 flex flex-col gap-2 md:gap-3 group hover:border-primary/40 transition-all">
|
||||
<div className="flex-1 min-w-0">
|
||||
<h4 className="text-lg font-normal text-white truncate">{box}</h4>
|
||||
<p className="text-xs text-muted font-normal mt-0.5">{itemCount} items linked</p>
|
||||
<p className="text-xs text-muted font-normal mt-0.5">{itemCount} Items Linked</p>
|
||||
</div>
|
||||
<div className="flex gap-2 shrink-0">
|
||||
<button
|
||||
onClick={() => setSelectedBoxLabel(box)}
|
||||
className="flex-1 py-3 bg-primary text-white text-xs font-normal rounded-xl flex items-center justify-center gap-2 hover:bg-blue-500 transition-colors shadow-lg shadow-primary/10 active:scale-95"
|
||||
className="btn-primary flex-1 text-xs py-2"
|
||||
>
|
||||
<Printer size={14} /> Print Label
|
||||
</button>
|
||||
<button
|
||||
onClick={() => { setSearchQuery(box); setShowBoxManager(false); setBoxSearchQuery(''); }}
|
||||
className="px-4 py-3 bg-surface border border-slate-800 text-secondary text-xs font-normal rounded-xl hover:bg-slate-800 active:scale-95"
|
||||
className="btn-secondary flex-1 text-xs py-2"
|
||||
>
|
||||
View
|
||||
</button>
|
||||
@@ -715,9 +715,9 @@ export default function InventoryPage() {
|
||||
)}
|
||||
</div>
|
||||
|
||||
<div className="p-4 md:p-6 py-3 md:py-4 bg-background/50 border-t border-slate-800 text-center flex items-center justify-center gap-2">
|
||||
<div className="w-1 h-1 rounded-full bg-primary animate-pulse" />
|
||||
<p className="text-xs text-secondary font-normal font-mono">TFM aInventory • Box management mode</p>
|
||||
<div className="p-4 md:p-6 py-3 md:py-4 bg-black/50 border-t border-border text-center flex items-center justify-center gap-2">
|
||||
<div className="w-1 h-1 bg-primary animate-pulse" />
|
||||
<p className="text-xs text-secondary font-normal font-mono">TFM aInventory • Box Management Mode</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -728,7 +728,7 @@ export default function InventoryPage() {
|
||||
<div className="fixed inset-0 z-[60] flex items-center justify-center p-4 bg-black/95 animate-in zoom-in-95 duration-200">
|
||||
<div className="w-full max-w-md flex flex-col gap-3 md:gap-4">
|
||||
|
||||
<div id="print-label-area" className="w-full bg-white p-4 md:p-6 rounded-lg shadow-2xl flex flex-col items-center gap-3 md:gap-4">
|
||||
<div id="print-label-area" className="w-full bg-white p-4 md:p-6 shadow-2xl flex flex-col items-center gap-3 md:gap-4">
|
||||
<h2 className="text-2xl font-normal text-black tracking-tighter text-center">
|
||||
{selectedBoxLabel}
|
||||
</h2>
|
||||
@@ -743,9 +743,9 @@ export default function InventoryPage() {
|
||||
<div className="flex flex-col gap-2 md:gap-3 no-print">
|
||||
<button
|
||||
onClick={() => window.print()}
|
||||
className="w-full py-5 bg-primary text-white rounded-[2rem] font-normal text-lg flex items-center justify-center gap-3 shadow-2xl shadow-primary/40 active:scale-95 transition-all"
|
||||
className="btn-primary w-full py-5 text-lg"
|
||||
>
|
||||
<Printer size={20} /> Print to Dymo/Brother
|
||||
<Printer size={20} /> Print To Dymo/Brother
|
||||
</button>
|
||||
|
||||
<button
|
||||
@@ -772,9 +772,9 @@ export default function InventoryPage() {
|
||||
img.src = "data:image/svg+xml;base64," + btoa(svgData);
|
||||
}
|
||||
}}
|
||||
className="w-full py-4 bg-surface border border-slate-800 text-white rounded-[2rem] font-normal text-sm flex items-center justify-center gap-2 active:scale-95 transition-all"
|
||||
className="btn-secondary w-full py-4 text-sm"
|
||||
>
|
||||
<Download size={16} /> Save for Mobile App
|
||||
<Download size={16} /> Save For Mobile App
|
||||
</button>
|
||||
|
||||
<button
|
||||
|
||||
Reference in New Issue
Block a user