Fix Copy on plain-http hubs, toasts under modal backdrops, shorter install dialog

- copyText (house ui.js): over plain http (a LAN IP or .local name) there is
  no navigator.clipboard, and the fallback copied an empty string. el() set
  the textarea's value as an attribute, which textareas ignore. The textarea
  also sat outside the open modal, where it can't be selected. The fallback
  now sets .value, works inside the dialog, and reports a failure instead of
  always toasting success.
- toast (house ui.js): goes inside an open modal dialog, above its backdrop,
  which dimmed it to gray on gray in both themes.
- Install dialog: one sentence that holds on any machine, plus the hub address
  and a link to the install notes; the command is select-all on click.

The same ui.js fix is in the web-frontend skill's house assets.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
neil 2026-11-04 19:42:00 -08:00
parent 35459b6309
commit 30ce39d5f0
3 changed files with 30 additions and 11 deletions

View file

@ -37,6 +37,7 @@
.form-grid .wide { grid-column: 1 / -1; }
.cmd { display: flex; gap: var(--space-2); align-items: stretch; }
.cmd pre { flex: 1; min-width: 0; margin: 0; padding: var(--space-2) var(--space-3); border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--code-bg); font: var(--text-sm)/1.5 var(--font-mono); white-space: pre-wrap; word-break: break-all; }
.select-all { user-select: all; -webkit-user-select: all; cursor: text; }
.more { display: flex; justify-content: center; padding: var(--space-3); }
.toolbar .input { width: 220px; height: var(--control-h); padding: 0 10px; }
.table a { color: inherit; text-decoration: none; }