From d2f7b69dc75159851b36fd0c51f6b5ae22e00289 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 27 Jan 2026 03:09:55 +0000 Subject: [PATCH] Fix selection tools and improve UI/UX - Fix cut/copy to preserve mask shape with transparency - Add missing CSS icons for magic_wand, lasso, ellipse_select tools - Fix toast messages styling (visible on dark theme) - Update AI Inpaint to work with all selection tools - Change tab title to +miniPaint - Add DNS config to docker-compose for external API access --- docker-compose.yml | 4 ++ frontend/index.html | 4 +- frontend/src/css/layout.css | 24 ++++++- frontend/src/js/tools/ai_inpaint.js | 9 +-- frontend/src/js/tools/smart_select.js | 92 ++++++++++++++++----------- 5 files changed, 89 insertions(+), 44 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 0c31dbe..9cb2806 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -17,6 +17,10 @@ services: - STABILITY_API_KEY=${STABILITY_API_KEY:-} - REPLICATE_API_KEY=${REPLICATE_API_KEY:-} - CORS_ORIGINS=* + # DNS servers for reliable external API access (Replicate, etc.) + dns: + - 8.8.8.8 + - 8.8.4.4 restart: unless-stopped volumes: diff --git a/frontend/index.html b/frontend/index.html index 7c7a022..56eac22 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -3,7 +3,7 @@ - miniPaint - image editor + +miniPaint - AI Image Editor @@ -35,7 +35,7 @@