← Commit history

0.5.34: widget helper pages scale to the slot height (compact Title Bar)

John Lauer ·c91c850d04 ·1mo ago ·parent eaf8d5a
3 files changed +11−10
bin/hydrogen-widget-lib.py+8−7
@@ -9,15 +9,16 @@ from http.server import BaseHTTPRequestHandler, ThreadingHTTPServer  PAGE = """<!doctype html><meta charset="utf-8"><title>%(title)s</title> <style>-html,body{margin:0;height:100%%;background:transparent;color:#e6ebef;font:11px/1.2 "Familjen Grotesk","Satoshi",system-ui,sans-serif;overflow:hidden}-.w{display:flex;align-items:center;gap:6px;height:30px;padding:0 6px;white-space:nowrap}-.lbl{opacity:.75;font-size:9px;letter-spacing:.04em;text-transform:uppercase}-.bar{position:relative;width:38px;height:6px;border-radius:3px;background:rgba(255,255,255,.14);overflow:hidden}+html,body{margin:0;height:100%%;background:transparent;color:#e6ebef;font-family:"Familjen Grotesk","Satoshi",system-ui,sans-serif;overflow:hidden}+/* Sized by the slot's height, so the same page fits the full Title Bar (30 px) and the compact one (20 px). */+.w{display:flex;align-items:center;gap:calc(20vh);height:100vh;padding:0 calc(20vh);white-space:nowrap;font-size:clamp(7px,37vh,12px);line-height:1.2}+.lbl{opacity:.75;font-size:clamp(6px,30vh,9px);letter-spacing:.04em;text-transform:uppercase}+.bar{position:relative;width:clamp(24px,130vh,40px);height:clamp(4px,20vh,6px);border-radius:3px;background:rgba(255,255,255,.14);overflow:hidden} .bar i{position:absolute;left:0;top:0;bottom:0;background:#19b3a6;border-radius:3px} .bar.warn i{background:#f0a060}.bar.hot i{background:#e5484d}-.v{font-variant-numeric:tabular-nums;min-width:26px;text-align:right}-.big{font-size:14px;font-weight:600;font-variant-numeric:tabular-nums}-.err{color:#f0a060;font-size:10px}+.v{font-variant-numeric:tabular-nums;min-width:2.4em;text-align:right}+.big{font-size:clamp(9px,47vh,14px);font-weight:600;font-variant-numeric:tabular-nums}+.err{color:#f0a060;font-size:clamp(7px,33vh,10px)} </style><body><div class="w" id="w">%(title)s…</div> <script> const R=%(refresh_ms)d;
package.json+1−1
@@ -4,7 +4,7 @@   "type": "bootstrap",   "title": "Adom Hydrogen (platform base)",   "brief": "Layer Hydrogen's workspace onto a standard Adom workstation.",-  "version": "0.5.33",+  "version": "0.5.34",   "description": "Hydrogen's PLATFORM-GENERIC workspace layer on top of adom/core. Installs adom/core for the full Adom ecosystem, then adds everything common to running inside Hydrogen on ANY platform: the runtime-neutral hydrogen-* skills and the generic editor configuration (Claude Code CLI + extension, VS Code settings, trusted domains). Platform-specific layers depend on THIS: adom/hydrogen-windows-bootstrap (WSL2), adom/hydrogen-mac-bootstrap, adom/hydrogen-ubuntu-bootstrap. The reference design other orgs copy to build their own bootstrap on adom/core.",   "org": "adom",   "tags": [
page.json+2−2
@@ -4,7 +4,7 @@   "type": "bootstrap",   "title": "Adom Hydrogen (platform base)",   "brief": "Layer Hydrogen's workspace onto a standard Adom workstation.",-  "version": "0.5.33",+  "version": "0.5.34",   "description": "Hydrogen's PLATFORM-GENERIC workspace layer on top of adom/core. Installs adom/core for the full Adom ecosystem, then adds everything common to running inside Hydrogen on ANY platform: the runtime-neutral hydrogen-* skills and the generic editor configuration (Claude Code CLI + extension, VS Code settings, trusted domains). Platform-specific layers depend on THIS: adom/hydrogen-windows-bootstrap (WSL2), adom/hydrogen-mac-bootstrap, adom/hydrogen-ubuntu-bootstrap. The reference design other orgs copy to build their own bootstrap on adom/core.",   "org": "adom",   "tags": [@@ -49,4 +49,4 @@     "hydrogen editor configuration",     "where do hydrogen skills come from"   ]-}\ No newline at end of file+}