clavarium 0.2.291-next.1 → 0.2.293-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
- package/web/app.js +12 -3
- package/web/style.css +8 -0
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clavarium",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.293-next.1",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "clavarium",
|
|
9
|
-
"version": "0.2.
|
|
9
|
+
"version": "0.2.293-next.1",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@xterm/addon-fit": "^0.11.0",
|
package/package.json
CHANGED
package/web/app.js
CHANGED
|
@@ -406,11 +406,20 @@
|
|
|
406
406
|
/* ---------- the list of conversations, folded away or not ---------- */
|
|
407
407
|
/* One click hides it and the terminal takes the room; one click brings
|
|
408
408
|
it back. Kept on this device. */
|
|
409
|
+
/* The same button on every page of its own (03-11: settings, access, assets, the deck, rooms...): each shows or
|
|
410
|
+
hides the list as the conversation's does -- one state, one place it is kept. */
|
|
411
|
+
for (const top of document.querySelectorAll('#places .sheet > .panel-top')) {
|
|
412
|
+
const f = document.createElement('button'); f.type = 'button'; f.className = 'fold-here'; f.title = 'Hide or show the list of conversations';
|
|
413
|
+
f.addEventListener('click', () => $('fold').click());
|
|
414
|
+
top.prepend(f);
|
|
415
|
+
}
|
|
409
416
|
const applyFold = (folded) => {
|
|
410
417
|
app.dataset.list = folded ? 'folded' : 'open';
|
|
411
|
-
$('fold').
|
|
412
|
-
|
|
413
|
-
|
|
418
|
+
for (const f of [$('fold'), ...document.querySelectorAll('.fold-here')]) {
|
|
419
|
+
f.textContent = folded ? '\u00bb' : '\u00ab';
|
|
420
|
+
f.setAttribute('aria-pressed', String(folded));
|
|
421
|
+
f.setAttribute('aria-label', folded ? 'Show the list of conversations' : 'Hide the list of conversations');
|
|
422
|
+
}
|
|
414
423
|
};
|
|
415
424
|
/* Folded by default: the list takes room few need all the time; the fold is remembered, so opening it
|
|
416
425
|
keeps it open (a person who wants it open sets it once). Open only when that choice was remembered. */
|
package/web/style.css
CHANGED
|
@@ -2273,3 +2273,11 @@ button.salon-switch::after { content: ""; position: absolute; top: 2px; left: 2p
|
|
|
2273
2273
|
button.salon-switch[aria-checked="true"] { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 25%, var(--bg)); }
|
|
2274
2274
|
button.salon-switch[aria-checked="true"]::after { left: 18px; background: var(--ok); }
|
|
2275
2275
|
@media (max-width: 700px) { button.salon-switch { min-height: 0; } }
|
|
2276
|
+
.nc-card > .salon-host-box, .nc-card > .salon-member-list { margin: 4px 16px 12px; }
|
|
2277
|
+
.nc-card > .salon-host-box { padding: 8px 12px; }
|
|
2278
|
+
.nc-card > .salon-members-tools { padding-bottom: 4px; }
|
|
2279
|
+
.nc-card > .salon-host-box + *, .nc-card > .salon-member-list + * { border-top: 0; }
|
|
2280
|
+
/* The list's button on each page of its own (03-11), as the conversation's. */
|
|
2281
|
+
.panel-top > .fold-here { font-size: 1rem; line-height: 1; padding: 4px 9px; margin-right: 8px; flex: none; }
|
|
2282
|
+
@media (max-width: 700px) { .panel-top > .fold-here { display: none; } }
|
|
2283
|
+
.panel-top > .fold-here + * { margin-right: auto; }
|