Build [v1.14.24]
This commit is contained in:
@@ -56,16 +56,16 @@ export default function QuantityAdjustmentModal({
|
||||
|
||||
return (
|
||||
<div className={`fixed inset-0 z-50 bg-black/50 flex items-center justify-center transition-opacity ${isClosing ? 'opacity-0' : 'opacity-100'}`}>
|
||||
<div className={`bg-slate-950 rounded-lg shadow-lg w-full max-w-md mx-4 transition-transform ${isClosing ? 'scale-95' : 'scale-100'}`}>
|
||||
<div className={`bg-background shadow-lg w-full max-w-md mx-4 transition-transform ${isClosing ? 'scale-95' : 'scale-100'}`}>
|
||||
{/* Header */}
|
||||
<div className="flex items-center justify-between p-4 border-b border-slate-800">
|
||||
<div className="flex items-center justify-between p-4 border-b border-outline/30">
|
||||
<h2 className="text-lg font-normal">Adjust quantity</h2>
|
||||
<button
|
||||
onClick={handleClose}
|
||||
aria-label="Close quantity adjustment modal"
|
||||
className="p-2 hover:bg-slate-800 rounded-lg transition-colors"
|
||||
className="p-2 hover:bg-surface-container transition-colors"
|
||||
>
|
||||
<X size={20} className="text-slate-400" />
|
||||
<X size={20} className="text-secondary" />
|
||||
</button>
|
||||
</div>
|
||||
|
||||
@@ -73,10 +73,10 @@ export default function QuantityAdjustmentModal({
|
||||
<div className="p-6 space-y-6">
|
||||
{/* Item Details */}
|
||||
<div>
|
||||
<h3 className="text-2xl font-normal text-slate-100 mb-2">
|
||||
<h3 className="text-2xl font-normal text-foreground mb-2">
|
||||
{item.name}
|
||||
</h3>
|
||||
<div className="text-sm text-slate-500 space-y-1">
|
||||
<div className="text-sm text-secondary space-y-1">
|
||||
{item.part_number && (
|
||||
<div>Part Number: {item.part_number}</div>
|
||||
)}
|
||||
@@ -91,14 +91,14 @@ export default function QuantityAdjustmentModal({
|
||||
|
||||
{/* Success Message */}
|
||||
{successMessage && (
|
||||
<div className="p-3 bg-green-500/10 border border-green-500/20 rounded-lg text-green-500 text-sm">
|
||||
<div className="p-3 bg-success/10 border border-success/20 text-success text-sm">
|
||||
{successMessage}
|
||||
</div>
|
||||
)}
|
||||
|
||||
{/* Quantity Adjustment */}
|
||||
<div>
|
||||
<label className="text-sm font-normal text-slate-400 mb-3 block">
|
||||
<label className="text-sm font-normal text-secondary mb-3 block">
|
||||
Current quantity
|
||||
</label>
|
||||
<QuantityDisplay
|
||||
@@ -112,7 +112,7 @@ export default function QuantityAdjustmentModal({
|
||||
<div className="flex gap-2 pt-2">
|
||||
<button
|
||||
onClick={handleClose}
|
||||
className="flex-1 px-4 py-2 bg-slate-800 hover:bg-slate-700 text-slate-100 rounded-lg font-normal transition-colors"
|
||||
className="flex-1 px-4 py-2 bg-surface-container hover:bg-surface-bright text-foreground font-normal transition-colors"
|
||||
>
|
||||
Keep Current Quantity
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user