Save slots: several networks per browser, one per window, with a cross-window guard

This commit is contained in:
Frederic Jung 2026-10-28 20:52:47 +01:00
parent 39ef7c13bb
commit da8150b7c4
No known key found for this signature in database
29 changed files with 595 additions and 124 deletions

View file

@ -153,3 +153,24 @@ input.t{width:100%;box-sizing:border-box;border:3px solid var(--ink);border-radi
.gl dd{margin:2px 0 0;color:var(--ink2);line-height:1.45;font-size:13px}
.kbd{display:inline-block;border:2px solid var(--ink);border-radius:6px;padding:0 5px;font-weight:900;font-size:11px;background:var(--soft)}
/* "Your networks" on the title screen: one big tap target per network, a small ⋯ for export and delete. */
.slots{display:flex;flex-direction:column;gap:7px;margin-bottom:6px;max-height:min(46vh,330px);overflow:auto;padding:2px 2px 5px}
.slot{display:flex;align-items:stretch;border:3px solid var(--ink);border-radius:16px;background:var(--paper);box-shadow:0 4px 0 var(--ink);flex:none;transition:transform .08s ease,box-shadow .08s ease}
.slot:active{transform:translateY(3px);box-shadow:0 1px 0 var(--ink)}
.slot.top{background:#FFE3F0;border-color:var(--me);box-shadow:0 4px 0 var(--me)}
.slot.busy{background:var(--soft);border-style:dashed}
.slot.broken{opacity:.75;border-style:dashed}
.slot-go{flex:1;min-width:0;display:flex;align-items:center;gap:10px;background:none;border:0;padding:8px 6px 8px 11px;font:inherit;color:inherit;text-align:left;cursor:pointer;min-height:52px}
.slot-go>i{font-style:normal;font-size:26px;line-height:1;flex:none}
.slot .sn{flex:1;min-width:0;display:flex;flex-direction:column}
.slot .sn b{font-family:var(--display);font-size:18px;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.slot .sn small,.slot .sm small{font-size:12px;color:var(--ink2);line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.slot .tag{align-self:flex-start;font:900 10px var(--body);text-transform:uppercase;letter-spacing:.05em;color:var(--me);line-height:1.2}
.slot.busy .tag{color:var(--ink2)}
.slot .sm{flex:none;display:flex;flex-direction:column;align-items:flex-end;text-align:right}
.slot .sm em{font:800 15px var(--display);font-style:normal}
.slot-more{flex:none;width:44px;border:0;border-left:2px dashed var(--line);background:none;font:900 22px var(--display);color:var(--ink);cursor:pointer;border-radius:0 13px 13px 0}
.slot-more:hover,.slot-go:hover{background:rgba(255,79,154,.06)}
.slot-go:focus-visible,.slot-more:focus-visible{outline:3px solid #FF4F9A;outline-offset:-3px}
.ibx.space{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.ibx.space .btns{margin:0}
h2 .rn{font-size:18px;vertical-align:middle;padding:2px 4px}