From bf6df54f49158372d7c8e5ca5ba8ca6f260a987e Mon Sep 17 00:00:00 2001 From: Shuanglei Tao Date: Sun, 26 Oct 2025 12:41:22 +0800 Subject: [PATCH] add undo/redo support --- html/css/main.css | 4 ++ html/index.html | 4 ++ html/js/crop.js | 1 + html/js/main.js | 2 + html/js/paint.js | 100 ++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 111 insertions(+) diff --git a/html/css/main.css b/html/css/main.css index 4b22a3f..b2abf66 100644 --- a/html/css/main.css +++ b/html/css/main.css @@ -419,6 +419,10 @@ canvas.text-placement-mode { border-color: var(--primary-color); } +.tool-button.hide { + display: none; +} + body.debug-mode .tool-button { background-color: var(--dark-input-bg); border-color: var(--dark-border); diff --git a/html/index.html b/html/index.html index c908448..180eca4 100644 --- a/html/index.html +++ b/html/index.html @@ -146,7 +146,11 @@ + + + +