From 3f8c2a69572feb0f13938a213bcf9de65cebaf31 Mon Sep 17 00:00:00 2001 From: "Aaron D. Lee" Date: Wed, 7 Jan 2026 19:28:38 -0500 Subject: [PATCH] Compact mode UI with smart output options MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Encode page: - Inline mode buttons: DCT | LSB | Color | Gray | JPEG | PNG - LSB mode auto-selects Color+PNG and disables Gray/JPEG - Dynamic hint text with icons below mode buttons Decode page: - Compact inline mode buttons: Auto | LSB | DCT - Dynamic hints that change per mode selection CSS: - Disabled btn-check styling for dimmed unavailable options 馃 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- frontends/web/static/style.css | 25 +++++++ frontends/web/templates/decode.html | 43 ++++++++---- frontends/web/templates/encode.html | 105 +++++++++++++++++++--------- 3 files changed, 127 insertions(+), 46 deletions(-) diff --git a/frontends/web/static/style.css b/frontends/web/static/style.css index e0c5e57..ca7d264 100644 --- a/frontends/web/static/style.css +++ b/frontends/web/static/style.css @@ -91,6 +91,31 @@ min-width: 0; } +/* Compact inline mode buttons */ +.mode-btn.mode-btn-sm { + padding: 0.35rem 0.6rem; + padding-left: 1.75rem; + font-size: 0.8rem; + border-radius: 0.375rem; + border-width: 1px; +} + +.mode-btn.mode-btn-sm .form-check-input { + left: 8px; + width: 14px; + height: 14px; +} + +.mode-btn.mode-btn-sm i { + font-size: 0.85rem; +} + +/* Disabled button labels for btn-check groups */ +.btn-check:disabled + .btn { + opacity: 0.4; + pointer-events: none; +} + /* ---------------------------------------------------------------------------- Security Factor Boxes - Matches drop-zone dashed border style ---------------------------------------------------------------------------- */ diff --git a/frontends/web/templates/decode.html b/frontends/web/templates/decode.html index 65be251..36a2597 100644 --- a/frontends/web/templates/decode.html +++ b/frontends/web/templates/decode.html @@ -273,27 +273,23 @@ - - -
-