From 95c8df1224ffe5be0a89b678a97b2c51a3137251 Mon Sep 17 00:00:00 2001 From: juliandescottes Date: Sun, 1 Oct 2017 12:32:33 +0200 Subject: [PATCH] Issue #727 - simplify import: resize and insertion steps --- src/css/dialogs-import.css | 10 ++++++--- .../dialogs/importwizard/steps/AdjustSize.js | 11 +++++----- src/templates/dialogs/import.html | 21 ++++--------------- 3 files changed, 16 insertions(+), 26 deletions(-) diff --git a/src/css/dialogs-import.css b/src/css/dialogs-import.css index 1b8b69bc..6311ae12 100644 --- a/src/css/dialogs-import.css +++ b/src/css/dialogs-import.css @@ -234,7 +234,7 @@ .insert-mode-option { display: flex; align-items: center; - margin-bottom: 5px; + margin: 5px 0; } .import-resize-option :checked + span, @@ -242,11 +242,15 @@ color: var(--highlight-color); } +.import-resize-option input, +.insert-mode-option input { + margin: 5px; +} + /** * ADJUST SIZE */ -.import-resize-anchor-info, -.import-resize-option-label { +.import-resize-anchor-info { margin-bottom: 10px; } diff --git a/src/js/controller/dialogs/importwizard/steps/AdjustSize.js b/src/js/controller/dialogs/importwizard/steps/AdjustSize.js index c93ac80b..dfda14d7 100644 --- a/src/js/controller/dialogs/importwizard/steps/AdjustSize.js +++ b/src/js/controller/dialogs/importwizard/steps/AdjustSize.js @@ -69,16 +69,15 @@ var anchorInfo = this.container.querySelector('.import-resize-anchor-info'); if (isBigger && keep) { anchorInfo.innerHTML = [ - '', + '
', ' Imported content will be cropped!', - '', - ' ', - 'Select crop origin' + '
', + 'Select crop anchor:' ].join(''); } else if (isBigger) { - anchorInfo.innerHTML = 'Select the anchor for resizing the canvas'; + anchorInfo.innerHTML = 'Select resize anchor:'; } else { - anchorInfo.innerHTML = 'Select where the import should be positioned'; + anchorInfo.innerHTML = 'Select position anchor:'; } }; diff --git a/src/templates/dialogs/import.html b/src/templates/dialogs/import.html index e7fd79f2..866efc4a 100644 --- a/src/templates/dialogs/import.html +++ b/src/templates/dialogs/import.html @@ -131,9 +131,6 @@ The imported image is bigger than the current sprite.
-
- How do you want to proceed? -
-
Select a frame in your current sprite:
+
Select the insertion frame:
- How should the imported frames be inserted: + Insert imported frames:
@@ -184,13 +181,3 @@
- -