Skip to content

Commit a04fe65

Browse files
AmirMohammad CheraghaliAmirMohammad Cheraghali
authored andcommitted
fix: refine measurement color palette layout
1 parent 5551250 commit a04fe65

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/MeasurementPanel.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export const MeasurementPanel: React.FC<MeasurementPanelProps> = ({ measurements
123123
{activeColorPickerId === m.id && (
124124
<>
125125
<div className="fixed inset-0 z-40" onClick={() => setActiveColorPickerId(null)} />
126-
<div className="absolute top-full left-0 mt-2 z-50 bg-neutral-900 border border-neutral-700 rounded-lg shadow-xl p-2 grid grid-cols-4 gap-1 w-28">
126+
<div className="absolute top-1/2 left-4 z-50 bg-neutral-900 border border-neutral-700 rounded-lg shadow-xl p-1.5 grid grid-cols-8 gap-1 -translate-y-1/2 w-max ml-2">
127127
{[
128128
'#ef4444', '#f97316', '#f59e0b', '#eab308',
129129
'#84cc16', '#22c55e', '#10b981', '#14b8a6',
@@ -132,7 +132,7 @@ export const MeasurementPanel: React.FC<MeasurementPanelProps> = ({ measurements
132132
].map(c => (
133133
<button
134134
key={c}
135-
className="w-4 h-4 rounded-full border border-white/10 hover:scale-110 transition-transform"
135+
className="w-3 h-3 rounded-full border border-white/10 hover:scale-125 transition-transform"
136136
style={{ backgroundColor: c }}
137137
onClick={() => {
138138
onUpdate(m.id, { color: c });

0 commit comments

Comments
 (0)