From b3d334e26e1e2f4ed2b02c9fea0626d102ad50f4 Mon Sep 17 00:00:00 2001 From: Qing Date: Thu, 15 Feb 2024 22:36:06 +0800 Subject: [PATCH] frontend: decrease the brush size min size --- web_app/src/components/Editor.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web_app/src/components/Editor.tsx b/web_app/src/components/Editor.tsx index 2e15986..c6cd3c4 100644 --- a/web_app/src/components/Editor.tsx +++ b/web_app/src/components/Editor.tsx @@ -32,7 +32,7 @@ import useHotKey from "@/hooks/useHotkey" import Extender from "./Extender" const TOOLBAR_HEIGHT = 200 -const MIN_BRUSH_SIZE = 5 +const MIN_BRUSH_SIZE = 3 const MAX_BRUSH_SIZE = 200 const COMPARE_SLIDER_DURATION_MS = 300 @@ -596,7 +596,7 @@ export default function Editor(props: EditorProps) { newBrushSize = baseBrushSize - 10 } if (baseBrushSize <= 10 && baseBrushSize > 0) { - newBrushSize = baseBrushSize - 5 + newBrushSize = baseBrushSize - 3 } setBaseBrushSize(newBrushSize) },