From bf6da6280cacc75a55784a764af457f44b16c86b Mon Sep 17 00:00:00 2001 From: kyuketski Date: Sat, 30 Aug 2025 19:11:20 +0300 Subject: [PATCH] refactor(ui): standardize and modularize settings UI components - Replace inline styles with reusable CSS classes for better maintainability. - Standardize toggle, select, and input components under consistent naming conventions (`wplace-settings-*`). - Extract icon styling into dedicated CSS rules for consistency. - Introduce grid layout for block size controls to improve responsiveness. - Remove redundant styles and consolidate common patterns into shared classes. Benefits: - Improves code readability and reduces duplication. - Enhances theming support by centralizing style definitions. - Simplifies future updates to the settings UI structure. Note: - Ensure all theme variables (`--wplace-*`) are correctly defined in the respective theme files. --- Auto-Image.js | 134 +++++++++++++++-------------------------- auto-image-styles.css | 137 +++++++++++++++++++++++++++--------------- 2 files changed, 138 insertions(+), 133 deletions(-) diff --git a/Auto-Image.js b/Auto-Image.js index 88e5158..88080b8 100644 --- a/Auto-Image.js +++ b/Auto-Image.js @@ -3586,12 +3586,12 @@ "> -