ework-web 0.10.31 → 0.10.32
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 +1 -1
- package/src/views/issueList.ts +4 -5
- package/src/views/issues.ts +4 -5
package/package.json
CHANGED
package/src/views/issueList.ts
CHANGED
|
@@ -20,11 +20,10 @@ function issueRow(
|
|
|
20
20
|
const href = `/${encodeURIComponent(owner)}/${encodeURIComponent(repo)}/issues/${it.number}`;
|
|
21
21
|
const title = q ? highlightAll(it.title, q) : escapeHtml(it.title);
|
|
22
22
|
const chips = labels.length
|
|
23
|
-
? `<
|
|
23
|
+
? `<span class="row-labels">${labels.map((l) => labelChip(l, owner, repo, state)).join("")}</span>`
|
|
24
24
|
: "";
|
|
25
25
|
return `<a class="row" href="${escapeAttr(href)}">
|
|
26
|
-
<div class="row-title">${title}</div>
|
|
27
|
-
${chips}
|
|
26
|
+
<div class="row-title">${title}${chips}</div>
|
|
28
27
|
<div class="row-meta">#${it.number} · 💬 ${it.comment_count} · ${relTime(it.updated_at)}</div>
|
|
29
28
|
</a>`;
|
|
30
29
|
}
|
|
@@ -79,8 +78,8 @@ export async function buildIssueList(
|
|
|
79
78
|
.row-title{font-weight:500;overflow-wrap:anywhere}
|
|
80
79
|
.row-meta{color:var(--text-muted);font-size:12px;margin-top:.2rem}
|
|
81
80
|
.empty{color:var(--text-muted);text-align:center;padding:2rem;font-size:13px}
|
|
82
|
-
.row-labels{display:
|
|
83
|
-
.issue-label{display:inline-block;padding:
|
|
81
|
+
.row-labels{display:inline;gap:.2rem;margin-left:.4rem}
|
|
82
|
+
.issue-label{display:inline-block;padding:0 5px;border-radius:6px;font-size:10px;font-weight:600;color:#fff;text-decoration:none;line-height:16px;white-space:nowrap;vertical-align:1px}
|
|
84
83
|
.issue-label:hover{opacity:.85;text-decoration:none}
|
|
85
84
|
.label-filter{font-size:13px;color:var(--text-muted);margin-bottom:.4rem}
|
|
86
85
|
.label-filter strong{color:var(--text)}
|
package/src/views/issues.ts
CHANGED
|
@@ -14,11 +14,10 @@ function issueRow(it: IssueWithMeta, q: string, state: string, labels: LabelRow[
|
|
|
14
14
|
const title = q ? highlightAll(it.title, q) : escapeHtml(it.title);
|
|
15
15
|
const projectStr = `${escapeHtml(it.project_owner)}<span style="opacity:.55">/</span>${escapeHtml(it.project_name)}`;
|
|
16
16
|
const chips = labels.length
|
|
17
|
-
? `<
|
|
17
|
+
? `<span class="row-labels">${labels.map((l) => labelChip(l, it.project_owner, it.project_name, state)).join("")}</span>`
|
|
18
18
|
: "";
|
|
19
19
|
return `<a class="row" href="${escapeAttr(href)}">
|
|
20
|
-
<div class="row-title">${title}</div>
|
|
21
|
-
${chips}
|
|
20
|
+
<div class="row-title">${title}${chips}</div>
|
|
22
21
|
<div class="row-meta">${projectStr} · #${it.number} · 💬 ${it.comment_count} · ${relTime(it.updated_at)}</div>
|
|
23
22
|
</a>`;
|
|
24
23
|
}
|
|
@@ -60,8 +59,8 @@ export async function buildIssuesFeed(
|
|
|
60
59
|
.row-title{font-weight:500;overflow-wrap:anywhere}
|
|
61
60
|
.row-meta{color:var(--text-muted);font-size:12px;margin-top:.2rem}
|
|
62
61
|
.empty{color:var(--text-muted);text-align:center;padding:2rem;font-size:13px}
|
|
63
|
-
.row-labels{display:
|
|
64
|
-
.issue-label{display:inline-block;padding:
|
|
62
|
+
.row-labels{display:inline;gap:.2rem;margin-left:.4rem}
|
|
63
|
+
.issue-label{display:inline-block;padding:0 5px;border-radius:6px;font-size:10px;font-weight:600;color:#fff;text-decoration:none;line-height:16px;white-space:nowrap;vertical-align:1px}
|
|
65
64
|
.issue-label:hover{opacity:.85;text-decoration:none}
|
|
66
65
|
.label-filter{font-size:13px;color:var(--text-muted);margin-bottom:.4rem}
|
|
67
66
|
.label-filter strong{color:var(--text)}
|