Skip to content

Commit 484fd48

Browse files
authored
fix: prevent custom dimension inputs from clipping 4-digit values (magic-peach#884)
1 parent a779799 commit 484fd48

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/PresetSelector.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ export default function PresetSelector({ recipe, onChange }: Props) {
290290
step={2}
291291
value={recipe.customWidth}
292292
onChange={(e) => handleWidthChange(Number(e.target.value))}
293-
className="w-full rounded-md border border-[var(--border)] bg-[var(--bg)] px-3 py-2 text-sm font-heading transition-all focus:outline-none focus:ring-2 focus:ring-film-400 [appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none"
293+
className="w-full min-w-20 rounded-md border border-[var(--border)] bg-[var(--bg)] px-3 py-2 text-sm font-heading transition-all focus:outline-none focus:ring-2 focus:ring-film-400 [appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none"
294294
/>
295295
</div>
296296

@@ -316,7 +316,7 @@ export default function PresetSelector({ recipe, onChange }: Props) {
316316
step={2}
317317
value={recipe.customHeight}
318318
onChange={(e) => handleHeightChange(Number(e.target.value))}
319-
className="w-full rounded-md border border-[var(--border)] bg-[var(--bg)] px-3 py-2 text-sm font-heading transition-all focus:outline-none focus:ring-2 focus:ring-film-400 [appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none"
319+
className="w-full min-w-20 rounded-md border border-[var(--border)] bg-[var(--bg)] px-3 py-2 text-sm font-heading transition-all focus:outline-none focus:ring-2 focus:ring-film-400 [appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none"
320320
/>
321321
</div>
322322

0 commit comments

Comments
 (0)