From 2f0a1fab21dcde27ad1dea39809fcc0814822a0e Mon Sep 17 00:00:00 2001 From: "Foluso ADEBISI (DevBox Aux)" Date: Thu, 1 Oct 2026 01:22:18 +0100 Subject: [PATCH] fix(cropper): responsive editor layout Two-column editor at >=900px (crop pad + cleaned preview left, cleaning/ review controls right), single column below; panel headers wrap their hints onto their own line on narrow screens. --- tools/public/assets/cropper/index.html | 122 +++++++++++++------------ tools/public/assets/style.css | 11 +++ 2 files changed, 73 insertions(+), 60 deletions(-) diff --git a/tools/public/assets/cropper/index.html b/tools/public/assets/cropper/index.html index 37a5737..aef7f52 100644 --- a/tools/public/assets/cropper/index.html +++ b/tools/public/assets/cropper/index.html @@ -78,79 +78,81 @@ -
-
+
+
+
-
- -
- cleaned preview + +
+
+
+ + +
+
-
-
-
-
- - -
- - -
+
-
- -
-
Accept picture
-
Reject picture
-
- -
-
-
- - +
+
Accept picture
+
Reject picture
- - -
-
-
- -
-
- - +
+
+
+ + +
+ + +
+
+ +
+ +
+
+ + +
+
+
+ + +
+
+ + + +
-
-
- - -
-
- - -
diff --git a/tools/public/assets/style.css b/tools/public/assets/style.css index 3e73919..7fc0beb 100644 --- a/tools/public/assets/style.css +++ b/tools/public/assets/style.css @@ -169,6 +169,17 @@ select.form-control { appearance: auto; } /* ── alerts ─────────────────────────────────────────────── */ .alert-soft { border-radius: 10px; border: 1px solid var(--err-soft); background: var(--err-soft); color: var(--err); font-size: 13.5px; padding: 0.6rem 0.9rem; } +/* ── editor grid (cropper) ──────────────────────────────── */ +.editor-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; } +@media (min-width: 900px) { + .editor-grid { grid-template-columns: 300px 1fr; align-items: start; } +} +.panel-head { flex-wrap: wrap; } +.panel-head .hint { flex-basis: 100%; margin-left: 0; } +@media (min-width: 720px) { + .panel-head .hint { flex-basis: auto; margin-left: auto; } +} + /* ── footer ─────────────────────────────────────────────── */ footer.foot { flex-shrink: 0; padding: 1.4rem 0 1.8rem; color: var(--faint); font-size: 12.5px; } footer.foot .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }