@nanocollective/roster 0.1.0-alpha.34 → 0.1.0-alpha.35
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/package.json
CHANGED
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
/* A bottom margin here would collapse against the row's own 16px and change nothing, so the
|
|
58
58
|
extra room is put on the row. General sibling, not adjacent: labels can sit between them. */
|
|
59
59
|
.tconflict ~ .tacts{margin-top:24px}
|
|
60
|
-
.
|
|
60
|
+
.tmetalabels{display:inline-flex;gap:6px;margin-left:10px;vertical-align:middle;font-family:var(--sans)}
|
|
61
61
|
/* A comment is a card with a header strip, so each message has a clear start and end. */
|
|
62
62
|
.cmt{border:1px solid var(--line);border-radius:var(--r-lg);margin:14px 0;background:var(--panel);overflow:hidden}
|
|
63
63
|
.cmt.human{border-color:color-mix(in srgb,var(--accent) 40%,var(--line))}
|
|
@@ -365,17 +365,20 @@ function inboxScreen(m, opts) {
|
|
|
365
365
|
head.innerHTML =
|
|
366
366
|
'<div class="meta">' + esc(item.repo) + " · " + (item.kind === "pr" ? "PR " : "") + "#" + item.number +
|
|
367
367
|
' · <span class="' + (item.state === "OPEN" ? "ok" : "") + '">' + esc(item.state) + "</span>" +
|
|
368
|
-
" · " + esc(item.author) + " · " + ago(item.updatedAt) +
|
|
368
|
+
" · " + esc(item.author) + " · " + ago(item.updatedAt) +
|
|
369
|
+
// The labels sit on this line, after the time, rather than taking a line of their own.
|
|
370
|
+
(item.labels.length
|
|
371
|
+
? '<span class="tmetalabels">' +
|
|
372
|
+
item.labels.map((l) => '<span class="chip ' + tone(l) + '">' + esc(l) + "</span>").join("") +
|
|
373
|
+
"</span>"
|
|
374
|
+
: "") +
|
|
375
|
+
"</div>" +
|
|
369
376
|
"<h3>" + esc(item.title) + "</h3>" +
|
|
370
377
|
(item.mergeable === "CONFLICTING"
|
|
371
378
|
? '<p class="tconflict">This branch conflicts with its base and cannot be merged ' +
|
|
372
379
|
"until someone rebases or merges the base into it.</p>"
|
|
373
380
|
: "") +
|
|
374
|
-
|
|
375
|
-
? '<div class="row tlabels">' +
|
|
376
|
-
item.labels.map((l) => '<span class="chip ' + tone(l) + '">' + esc(l) + "</span>").join("") +
|
|
377
|
-
"</div>"
|
|
378
|
-
: "");
|
|
381
|
+
"";
|
|
379
382
|
head.append(threadActions(item));
|
|
380
383
|
delete viewer.dataset.wait;
|
|
381
384
|
viewer.replaceChildren(head);
|